View Single Post
  #5  
Old 03-07-2009, 08:51 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

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

PS -- if I include the var in the section loop, it appears... such as:

Code:
{section name=field loop=$extra_fields} {if $extra_fields[field].field eq "Ingredients"} {if $extra_fields[field].field_value ne ""} {assign var="ingred" value=$extra_fields[field].field_value} {/if} <img src="/product-images/ingredients/{$ingred}" /> {/if} {/section}

But this doesn't solve the issue of using $ingred in other locations on the page.

Not to mention, trying to assign 2 different vars to be used in different places...

????
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote