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)
-   -   Custom Category Templates (https://forum.x-cart.com/showthread.php?t=10341)

JimR 11-12-2004 09:51 AM

Custom Category Templates
 
Hello All,

I'm new to X-Cart and excited to get started. I'm beginning development on the new version of my site and I've been reading through the forums here quite a bit. One thing I couldn't find is whether or not it's possible to have separate templates for each category, or at least call a different header depending on the category. I'm thinking of an Amazon-like top menu where the menu bar changes depending on the category selected. This will have a lot to do with how I design my header(s), and that's where I plan to start. Can someone point me in the right direction?

Many thanks,
Jim

PhilJ 11-12-2004 10:05 AM

something along the lines of

Code:

{if $cat eq "1"}
Show this header HTML
{else if $cat eq "2"}
Show that header HTML
{/if}
{/if}


etc.

You can detect if the customer is on the homepage

http://forum.x-cart.com/viewtopic.php?t=12667

or if they're in a particular static page

Lots of handy tips here

http://forum.x-cart.com/viewtopic.php?t=12234

HTH

JimR 11-12-2004 11:21 AM

Thanks for the help!


All times are GMT -8. The time now is 05:41 PM.

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