X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modify Order Advanced Changed Template (https://forum.x-cart.com/showthread.php?t=71029)

lingy4u 01-20-2015 08:16 PM

Modify Order Advanced Changed Template
 
I have been looking to modify the email order receipt template. I believe I found the template under skins/mail/en/order_advanced_changed/body.tpl.

<p>
{t(#Your order has been changed#,_ARRAY_(#id#^order.getOrderNumber())):h}. {t(#Thank you for your order FOOTER#):h}
<hr />
<p>

I would like to modify "#Your order has been changed#,_ARRAY_(#id#^order.getOrderNumber())):h}" to say "We received your order on "DATE TIME".

Is it possible to do that?

qualiteam 01-20-2015 09:13 PM

Re: Modify Order Advanced Changed Template
 
1. You can change the text without doing any coding, but this won't allow you to insert the order date into the text. Go to "Store setup" -> "Translations" -> "Edit labels" tab, search for "Your order has been changed" and change the translation to the text you need. Use {{id}} as a placeholder for the order number.

2. You can insert the order date into the text by creating a new skin module (or editing files of the Custom Skin module). You are to do the following:
- replace the skins/mail/en/order_advanced_changed/body.tpl file (in the custom skin, not the original core file!) with a custom one displaying the new label (see the contents below)
- add the new label on the "Edit labels" tab and use {{date}} as a placeholder for the order date, and {{id}} as a placeholder for the order number.

The contents for the template would be as follows:
Code:

<p>
{t(#We received your order on DATE#,_ARRAY_(#date#^formatTime(order.getDate()),#id#^order.getOrderNumber())):h}. {t(#Thank you for your order FOOTER#):h}
<hr />
<p>


The new label would be "We received your order on DATE", and the translation would be "We received your order on {{date}}".

qualiteam 01-20-2015 09:25 PM

Re: Modify Order Advanced Changed Template
 
By the way, please update your signature, and:
1. Remove the license key
2. Add your X-Cart version number

:)

Thanks!

lingy4u 01-20-2015 09:41 PM

Re: Modify Order Advanced Changed Template
 
Quote:

Originally Posted by qualiteam
By the way, please update your signature, and:
1. Remove the license key
2. Add your X-Cart version number

:)

Thanks!


:oops: Thank you!


All times are GMT -8. The time now is 09:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.