We provide premium cPanel hosting!

How to modify email template Print

  • 0

Re: How to modify email template, need help

 

Are you familiar with the template override feature?

Basically, ZenCart comes with default_template and language files which contain the default template and customizable verbage. You can modify these files to customize your layout, but you do so at great peril because these may be overwritten by ZenCart updates.

To get around this, ZenCart uses a template override system. Any of the template files can be copied to parallel folders named "Custom" or any other name you choose to call your custom template. Then you can modify the file in the custom folder to your hearts content without disturbing the default file.

In the case of these emails, you need to copy /includes/languages/english/checkout_process.php to /includes/languages/english/[custom]/checkout_process.php.

Another file, which contains most of the purchase confirmation verbage is /includes/languages/english/html_includes/define_checkout_success.php. Copy this to /includes/languages/english/[custom]/html_includes/define_checkout_sucess.php and modify to your liking.

Note: Replace [custom] with the actual name of your custom template...and be sure to use the same name for all folders containing custom template files. Note: You may already have a custom template in use. (check admin tools-->select template screen to find out.) If so place the files in folders with that name.

If you did not have a custom template already established, then you will need to activate your new custom template in admin at Tools -->template selection. You do not need to copy all default template files to your custom template folders. Only generate custom files you need to modify your site. ZenCart checks for custom files first and if a specific file is not found, it uses the default file.

 


Was this answer helpful?

« Back

Powered by WHMCompleteSolution