How Can Override Mail Template File In Cscart In Our Addon

Hello,

i want override invoice.tpl in design/themes/responsive/mail/templates/orders/invoice.tpl.

Please anyone help me how to we override this tpl file.

Please create the following file:

design/themes/responsive/mail/templates/addons/[addon id]/overrides/orders/invoice.tpl

PS It will not work on old versions due to the following issue:

http://forum.cs-cart.com/tracker/issue-5968-my-changes-overrides-not-working-mailtemplates/?gopid=23230#entry23230

Hi thanks for helping me . i was trying this but its not work in cscart 4.1.5,
in cscart 4.1.5 how can override it ??

Apply the fix and try. If you face any problem, please contact CS-Cart support team. It is well-known bug and should be fixed free of charge.

The link to the fix is broken.

I am trying to override the mail header template:

/design/themes/my_theme/mail/templates/addons/my_changes/overrides/common/letter_header.tpl

but it's not working.

I'd like to see what the bug/bugfix is if someone can provide the proper link.

I'm on multivendor 4.3.3, btw.

The link to the fix is broken.

I am trying to override the mail header template:

/design/themes/my_theme/mail/templates/addons/my_changes/overrides/common/letter_header.tpl

but it's not working.

I'd like to see what the bug/bugfix is if someone can provide the proper link.

I'm on multivendor 4.3.3, btw.

Did you try to clear cache?

Yes, I cleared the cache.

I also got a reply from CS-Cart support:

Unfortunately, mail templates could not be overridden using the overrides technique and My changes add-on. Only the pre and post hooks could be used to change the code for the mail templates. We apologize for any possible inconvenience.

Thank you.

Now, what was that bugfix link?

Yes, I cleared the cache.

I also got a reply from CS-Cart support:

Unfortunately, mail templates could not be overridden using the overrides technique and My changes add-on. Only the pre and post hooks could be used to change the code for the mail templates. We apologize for any possible inconvenience.

Thank you.

Now, what was that bugfix link?

Strange to hear that. One of our modules uses mail template override without any problems