View Single Post
  #2  
Old 03-07-2009, 01:29 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: extra fields, assigning a variable, using more than one extra field

Hi Jeremy -
I may not understand exactly what you are trying to do - but I do have a "sandbox" cart where I experiment. I dropped your code in several places in product.tpl and it worked as far as displaying the desired extra field. I don't have a tab mod, so that may be why I can't see the problem you are having.

For your other question - was this what you need?:

Code:
{section name=field loop=$extra_fields} {if $extra_fields[field].field eq "Ingredients"} {if $extra_fields[field].field_value ne ""} {assign var="ingredient" value=$extra_fields[field].field_value} {/if} {/if} {/section}


Then - you can use later:

Code:
<p><b>Ingredient:</b> {$ingredient}</p>

If it helps - you can PM me and I will give you access to my sandbox.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote