![]() |
I'm trying to achieve the same effect, but I'm having some trouble. Here is the code I'm using. I know that I need the value from the second extra field for each item, but this gives me a smarty error. It's trying to use $location as a smarty tag, I just want it to be a variable. Any help?
Code:
<? |
Hi Everyone,
I have added this code to my site and added the code from Shan Quote:
I have placed the above code in /mail/html/order_data.tpl I hope this is the correct place. Now my question is what is the code to include in a html email that calls this ectra field information. In my case it is extra field "6" Any assistance would be greatly appreciated. Regards, Andrew |
FYI... v4.0.15
This is what you can add to your .tpl files to call the Extra Field Data: In /customer/main/product.tpl you have the followiing calling the Extra Field Data: Code:
{if $active_modules.Extra_Fields ne ""} Included code in /modules/Extra_Fields/product.tpl Code:
{* $Id: product.tpl,v 1.7 2004/05/28 12:21:07 max Exp $ *} This justs lists the Extra Data fields on the Product Detail Page. So to get just the Extra Field you want use the Extra Field ROW#. In Admin you have Extra Field you can add... if the data is in the 3rd row then use '03' inplcase of [field] in the code below... you can use 01,02,03,04,05 etc for represented rows. Extra field Title: Code:
{$extra_fields[field].field} Extra Field Value: Code:
{$extra_fields[field].field_value} The Other thing you can do is just qualify the Title to make sure that you are displaying the correct ROW incase you have changed the Title to something else. Taken from above code in /modules/Extra_Fields/product.tpl Extra Field Title to display only = Test Title Code:
{section name=field loop=$extra_fields} Regards, Marko |
All times are GMT -8. The time now is 10:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.