Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Changing The Invoice - My_Changes Rate Topic   - - - - -

 
  • nevsie
  • Member
  • Members
  • Join Date: 25-Oct 06
  • 94 posts

Posted 09 September 2014 - 01:11 PM #1

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

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 09 September 2014 - 02:54 PM #2

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

It looks like you forgot my_changes here
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • grabbags
  • Senior Member
  • Members
  • Join Date: 14-Aug 07
  • 360 posts

Posted 22 April 2015 - 12:21 AM #3

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.


<?php /* Smarty version Smarty-3.1.18, created on 2015-04-21 17:12:31
compiled from ".../public_html/design/backend/mail/templates/orders/invoice.tpl" */ ?>


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

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1250 posts

Posted 22 April 2015 - 06:39 AM #4

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
{hook name="orders:invoice"}
{if $order_info}

...

</tr>
</table>
{/hook}

#hook
design/backend/mail/templates/addons/my_changes/hooks/orders/invoice.override.tpl

I hope that helps,

---
Valentin
part of hungryweb.net

 
  • grabbags
  • Senior Member
  • Members
  • Join Date: 14-Aug 07
  • 360 posts

Posted 22 April 2015 - 04:35 PM #5

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.

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 23 April 2015 - 09:16 AM #6

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
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1250 posts

Posted 24 April 2015 - 04:55 AM #7

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


Thank you, I never check this part :D

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 24 April 2015 - 09:34 AM #8

Thank you, I never check this part :D


Live and learn :)
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)