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)
-   -   if specific category (https://forum.x-cart.com/showthread.php?t=16238)

pablo 08-30-2005 07:46 AM

if specific category
 
Hi,

Can anyone help me achieve the following?

When a certain category is chosen, I want to display my products in a different format.

So I am going to create a different products.tpl that is called when that specific category is selected.

I am stuck trying to figure out what if statement to use in categories.tpl or subcategories.tpl

I would have thought that I could either have it so that it chooses if category ID = my category, or if category = position.

Any pointers or ideas however well founded would be great as they may just get me moving in the right direction.

Thanks in advance

Dongan 08-30-2005 07:55 PM

{if $cat eq "101"}
code
{else}
code
{/if}


All times are GMT -8. The time now is 09:26 PM.

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