The aesthetics and content of your emails are as crucial as your online store's design. In Venddor IO, you can create and customize your email templates via the mail directory located under design/themes/your_theme_name. These templates, designed using the Smarty framework, offer both flexibility and familiarity if you've worked with Venddor IO's theme templates.
Venddor IO harnesses the Mailer class's send function for dispatching emails, where the email template becomes one of the defining parameters:
'tpl' => 'addons/call_requests/call_request.tpl',
Find comprehensive insights into the email dispatch process in our detailed guide.
images: This sub-directory houses images designated for email templates. Integrate images seamlessly using the {$images_dir} variable, like so:
<img src="{$images_dir}/[file_name]" />
templates/addons/[add-on_name]/.Every email crafted in Venddor IO typically involves at least two .tpl files: one for the email's main content and another for its subject. The subject's template filename mirrors that of the email content but is appended with the _subj suffix.
To illustrate:
templates/promotions/give_coupon.tpl represents the core email content.templates/promotions/give_coupon_subj.tpl stands for the email's subject line.