View Single Post
  #71  
Old 04-09-2008, 09:02 AM
  deadzebrainc's Avatar 
deadzebrainc deadzebrainc is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 45
 

Default Re: common if/then modifications I make to x-cart...

Trying to do something (relatively?) simple, but I'm new to smarty so I need a bit of help.

I want to be able to change things in the category 1 products list (products.tpl) IF the product is also a member of a specific subcategory (3).


{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y" and $products[product].categoryid "3"}
*things to change would go here*
{/if}

Maybe I need to do an extra AND to include category 1, or is there a .subcategoryid variable? Not really sure what to do here Use an array and check the second ID?
__________________
DEAD ZEBRA, INC shop
X-cart 4.1.9
Reply With Quote