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

How to add extra fields to invoices

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-31-2005, 11:22 AM
 
SellPro SellPro is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 6
 

Default How to add extra fields to invoices

We have an extra field "Location" set up for all of our products. This lets us know where in the warehouse the item is located. I know which template to edit, and where to put the code, but I don't know the syntax. What do I add to mail/html/order_data.tpl to have a specific extra field show up? Here is what I've tried:

{$extra_fields[field].field_value}
{$extra_fields[Location].field_value}
{$extra_fields[$product.Location].field_value}

Code:
{foreach from=$products item=product} <TR> <TD align="center">{$product.productcode}</TD> <TD align="center"> ?????? </TD> <TD><FONT style="FONT-SIZE: 11px">{$product.product}</FONT> {if $product.product_options ne ''} <TABLE> <TR> <TD valign="top">{$lng.lbl_options}:</TD> <TD>{include file="modules/Product_Options/display_options.tpl" options=$product.product_options options_txt=$product.product_options_txt}</TD> </TR> </TABLE>

Usually I'd tinker with it until I got it going, but I don't have that luxury when I'm working a project for business, so I apologize if this has been asked before.
__________________
Version 4.0.16
Reply With Quote
  #2  
Old 10-31-2005, 11:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

http://forum.x-cart.com/viewtopic.php?t=18009
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:59 AM.

   

 
X-Cart forums © 2001-2020