The mail directory located in design/themes/your_theme_name contains the templates and media files of emails.
Email templates are based on Smarty. Working with them is similar to working with the templates of the theme itself.
CS-Cart uses the send
method of the Mailer
class to send emails. One of the parameters passed to the method is the email template:
'tpl' => 'addons/call_requests/call_request.tpl',
Note
Learn more about how emails are sent in this article.
media:
images—contains the images used in email templates. Use the {$images_dir}
variable to insert images from this folder. For example:
<img src="{$images_dir}/[file_name]" />
templates:
Every email consists of at least 2 .tpl files: email subject and email body. The template file of email subject has the same name as the email body template, but with the added _subj
suffix.
For example:
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.