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

Adding new field to order email.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-28-2003, 10:08 PM
  escott's Avatar 
escott escott is offline
 

Advanced Member
  
Join Date: May 2003
Location: Tampa, FL
Posts: 93
 

Default 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
__________________
-Eric
www.saltwatersportswear.com
-----------------------------------
X-Cart 3.5.6 (or 3.5.9 not sure) testing 4.0.0
Redhat Linux 9
Dual Pentium 2600mhz
1.2 gig ram, 200 gig hd
Reply With Quote
  #2  
Old 12-29-2003, 05:29 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 12-29-2003, 06:36 AM
  escott's Avatar 
escott escott is offline
 

Advanced Member
  
Join Date: May 2003
Location: Tampa, FL
Posts: 93
 

Default

Bummer, thats a whole lot of back tracking.
__________________
-Eric
www.saltwatersportswear.com
-----------------------------------
X-Cart 3.5.6 (or 3.5.9 not sure) testing 4.0.0
Redhat Linux 9
Dual Pentium 2600mhz
1.2 gig ram, 200 gig hd
Reply With Quote
  #4  
Old 01-05-2004, 06:23 PM
 
Xixao Xixao is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 32
 

Default

Would you mind posting this - or an alternative - code? I wouldn't mind implementing this on my site.
Reply With Quote
  #5  
Old 01-05-2004, 08:22 PM
  escott's Avatar 
escott escott is offline
 

Advanced Member
  
Join Date: May 2003
Location: Tampa, FL
Posts: 93
 

Default

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.
__________________
-Eric
www.saltwatersportswear.com
-----------------------------------
X-Cart 3.5.6 (or 3.5.9 not sure) testing 4.0.0
Redhat Linux 9
Dual Pentium 2600mhz
1.2 gig ram, 200 gig hd
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 09:37 PM.

   

 
X-Cart forums © 2001-2020