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)
-   -   Adding new field to order email. (https://forum.x-cart.com/showthread.php?t=5763)

escott 12-28-2003 10:08 PM

Adding new field to order email.
 
I have added referred by to the user registration and it is working fine. However I want to add it to the order that is emailed to the webmaster as well. I modifed the /mail/order_invoice.tpl to include the label and the field " {$lng.lbl_referer}: {$order.referred} " but all I get in the email is the label: and not the field data from customers.reffered where is the select statement created to gather the customer information for the order email? I am using version 3.5.1

shan 12-29-2003 05:29 AM

chances are that your new field is being stored in the cutomers table but not the orders table. You would need to pass it there too

escott 12-29-2003 06:36 AM

Bummer, thats a whole lot of back tracking.

Xixao 01-05-2004 06:23 PM

Would you mind posting this - or an alternative - code? I wouldn't mind implementing this on my site.

escott 01-05-2004 08:22 PM

Its all right here: http://forum.x-cart.com/viewtopic.php?t=5885&highlight=referrer

Let me know if you get it working the order.


All times are GMT -8. The time now is 06:02 PM.

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