View Single Post
  #13  
Old 09-04-2009, 11:11 AM
 
Mark UK Mark UK is offline
 

Member
  
Join Date: Jul 2009
Posts: 17
 

Default Re: Targeting a whole Sub-Category with one if statement?

Just wanted to say thanks to the above guys and girls, this worked a treat!

added extra field in admin with Service Name 'tank_mates' and a default value of 'no' and put the code below in product.tpl

{section name=field loop=$extra_fields}
{if $extra_fields[field].service_name eq "tank_mates" && $extra_fields[field].field_value eq "yes"}

<div id="layer1"{if $active_set ne 1} style="display:none;"{/if}>
{if $active_modules.Upselling_Products}
{include file="modules/Upselling_Products/related_products.tpl" }
{/if}
</div>

{/if}
{/section}

Hope that and the above helps anybody else trying to figure this out
__________________
X-Cart Gold Version 4.2.1
Reply With Quote