X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Targeting a whole Sub-Category with one if statement? (https://forum.x-cart.com/showthread.php?t=49527)

Mark UK 09-04-2009 07:57 AM

Re: Targeting a whole Sub-Category with one if statement?
 
Thank you Christine! Looks like what I'm after, gonna try it out :)

Mark UK 09-04-2009 08:00 AM

Re: Targeting a whole Sub-Category with one if statement?
 
Ahh.. Thanks Amy, that looks like was the extra Y/N bit I was wondering about - FAB!!

Mark UK 09-04-2009 11:11 AM

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 :-)


All times are GMT -8. The time now is 07:50 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.