View Single Post
  #12  
Old 04-06-2009, 06:00 PM
  clik's Avatar 
clik clik is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: Canada
Posts: 30
 

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

Hi,
I was trying in different ways to implement your idea of taking a certain extra field's value and inserting where you wish to. It didn't work for me. Can you tell me where I'm wrong:

skin1/modules/Extra_Fields/product.tpl

Code:
{foreach from=$extra_fields item=v} {if $v.active eq "Y" && $v.field_value} <tr> <td class="property-name">{$v.field}</td> <td class="property-value">{$v.field_value}</td> </tr> {/if} {/foreach} {section name=field loop=$extra_fields} {if $extra_fields[field].field eq "promo_link"} {if $extra_fields[field].field_value ne ""} {assign var="promo_link" value=$extra_fields[field].field_value} <tr><td colspan="2"> <a href="{$promo_link}" class="ButtonOrange">Print Special Coupon</a> </td></tr> {/if} {/if} {/section}

I have other three Extra Fields marked as "show" and one is not marked as "show" (promo_link) so I need to show the three extra field's values normally and the promo_link as a code in <a> tag. Is it possible?

I would appreciate your help, thank you!
clik
__________________
__________________
XC5: 5.3.4.4
PHP: 7.0.26
MySQL server: 5.5.56-MariaDB
Reply With Quote