View Single Post
  #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