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

Change template order (email)

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-22-2016, 12:29 PM
 
FactorInteractivo FactorInteractivo is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 44
 

Exclamation Change template order (email)

Hi guys,

I need exchanging place 2 divs or tables, i want change in the order email, first show the client info and after the table with all products.

X-cart version : 5.2.15

http://oi63.tinypic.com/11r6a7p.jpg

Any ideas?
__________________
X-Carting since 2006
Reply With Quote
  #2  
Old 09-01-2016, 06:11 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Change template order (email)

I believe this is controlled by templates in the skins/mail/en/order/invoice/parts/ directory.

If you check the files you'll find templates that "inject" themselves into the layout with @ListChild (list="invoice.base", weight="50") declaration.
The "weight" attribute is the thing that controls the position.
However, you may not edit these files directly, so you have to create a module and swap these templates with the help of the \XLite\Module\AModule::moveTemplatesInLists() method (see the phpDoc for the method for code samples).

Or you can hire a third-party developer or our team to implement this for you:
http://www.x-cart.com/custom-development.html
__________________
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
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 09:28 AM.

   

 
X-Cart forums © 2001-2020