Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Modify Order Advanced Changed Template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-20-2015, 08:16 PM
 
lingy4u lingy4u is offline
 

Member
  
Join Date: Sep 2014
Posts: 27
 

Default 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?
__________________
X-Cart Business 5.2.13
Reply With Quote
  #2  
Old 01-20-2015, 09:13 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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}}".
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 01-20-2015 at 09:15 PM.
Reply With Quote

The following user thanks qualiteam for this useful post:
lingy4u (01-20-2015)
  #3  
Old 01-20-2015, 09:25 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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!
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #4  
Old 01-20-2015, 09:41 PM
 
lingy4u lingy4u is offline
 

Member
  
Join Date: Sep 2014
Posts: 27
 

Default 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!

Thank you!
__________________
X-Cart Business 5.2.13
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:16 PM.

   

 
X-Cart forums © 2001-2020