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)
-   -   How to add extra fields to invoices (https://forum.x-cart.com/showthread.php?t=17638)

SellPro 10-31-2005 11:22 AM

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.

balinor 10-31-2005 11:29 AM

http://forum.x-cart.com/viewtopic.php?t=18009


All times are GMT -8. The time now is 10:14 PM.

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