![]() |
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
|
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
|
Bummer, thats a whole lot of back tracking.
|
Would you mind posting this - or an alternative - code? I wouldn't mind implementing this on my site.
|
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.