/
Extend email templates

Extend email templates

  1. In the AbanteCart admin panel go to the Design > Email templates and add a new variable name to the Allowed Placeholders

    NOTE: We do not recommend using a visual editor for email template editing. This will break the template. This issue will be address in the future version of AbanteCart.

     

  2. Search in the AbanteCart PHP code for the required email template text_id

     

  3. In your extension code, create a hook to add a new value to the email template data array ‘mail_template_data’.

Public function onModelCheckoutOrder__ProcessData() { $that = &$this->baseObject; $that->data['mail_template_data']['foo'] = 'bar'; }

 

Related content

Email templates
Email templates
More like this
Template development guide
Template development guide
More like this
Appearance Settings
Appearance Settings
More like this
Mail/SMS to customers
Mail/SMS to customers
More like this
E-mail (store email)
E-mail (store email)
More like this
Mail Settings
Mail Settings
More like this