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.
Search in the AbanteCart PHP code for the required email template text_id
Create In your extension code, create a hook in the extension to add a new variable into value to the email template data array ‘mail_template_data’.
Code Block | ||
---|---|---|
| ||
Public function onModelCheckoutOrder__ProcessData()
{
$that = &$this->baseObject;
$that->data['mail_template_data']['foo'] = 'bar';
} |