Changing The Invoice - My_Changes

Not sure if this is possible in this section… but…

if i were to create a folder:

/design/themes/responsive/templates/addons/my_changes/overrides/index.tpl



i could then duplicate and adjust that template file and after clearing cache it would use the mychanges version of that file.

My Changes works inside the responsive/templates/addons/ folders…



However, i want to do the same to invoice.tpl, and thats within

/design/themes/responsive/mail/templates/orders/invoice.tpl



I have tried modifying:

/design/themes/responsive/mail/templates/addons/overrides/orders/invoice.tpl



but that gets ignored… therefore i am asking - does the my_changes addon not work within the mail section???



N


/design/themes/responsive/mail/templates/addons/overrides/orders/invoice.tpl




It looks like you forgot my_changes here

Has new files here:

/public_html/design/backend/mail/templates/addons/my_changes/overrides/orders/invoice.tpl

/public_html/design/themes/responsive/mail/templates/addons/my_changes/overrides/orders//invoice.tpl



However, the changes do not kick in even I delete the cache folder.

It keeps pulling data from here when I read the cache.




[quote] compiled from ".../public_html/design/backend/mail/templates/orders/invoice.tpl" */ ?>[/quote]



Any help would be greatly appreciated. This is driving me nuts.

Seams like is a bug for mail overrides because sometime works and sometime no, you can modify the core file and add all content from file into a new hook and after that override the hook:



ex. for backend:



#file

design/backend/mail/templates/orders/invoice.tpl



#new content

```php

{hook name=“orders:invoice”}

{if $order_info}








{/hook}
```

#hook
[color=#282828][font=arial, verdana, tahoma, sans-serif]design/backend/mail/templates/addons/my_changes/hooks/orders/invoice.override.tpl[/font][/color]

I hope that helps,

[color=#282828][font=arial, verdana, tahoma, sans-serif]---[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]Valentin[/font][/color]
[color=#808080][font=arial, verdana, tahoma, sans-serif][size=2]part of hungryweb.net[/size][/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif] [/font][/color]

Thanks for the reply. I can hard code to the core file(s), however, it's not recommended for future update. Will try to do your way. Thanks again.

If you familiar with php hooks, you can use the send_mail_pre one in your module and set another template before the e-mail is sent

[quote name=‘eComLabs’ timestamp=‘1429780599’ post=‘212443’]

If you familiar with php hooks, you can use the send_mail_pre one in your module and set another template before the e-mail is sent

[/quote]



Thank you, I never check this part :D

[quote name=‘Vali’ timestamp=‘1429851356’ post=‘212508’]

Thank you, I never check this part :D

[/quote]



Live and learn :)