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)
-   -   3 Categories 3 different Designs (https://forum.x-cart.com/showthread.php?t=36596)

mitash 01-07-2008 09:17 PM

3 Categories 3 different Designs
 
Hi I have a store where I have 3 top categories for example...

Electronics | Clothing | Books

I have added subcategories for each category.

Is there a mod where I can have a separate template with different banner, logo and color for each category?

or

Can anyone please guide me how to achieve this?

Thanks in advance!
Cheers

carpeperdiem 01-07-2008 09:41 PM

Re: 3 Categories 3 different Designs
 
WebsiteCM has a mod that does this...

or you can clone your template files and use if/elses.

I bought the mod. it's VERY flexible.

Jon also has a mod for PRODUCT pages, and also sells both mods as a bundle. I think it's a good investment, since this makes it easier to have specific p[ages for certain products (and you can only do so much within the product description).

mitash 01-07-2008 09:49 PM

Re: 3 Categories 3 different Designs
 
thanks for your reply...
is it possible to see an example..?

carpeperdiem 01-08-2008 05:09 AM

Re: 3 Categories 3 different Designs
 
in file /skin1/customer/main/products.tpl
FIND:
Code:

{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}

REPLACE WITH:
Code:

{if $usertype eq "C" and $cat eq "1" or $cat eq "2" or $cat eq "3" }
{include file="customer/main/products_t2.tpl" products=$products}
{elseif $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}


edit the $cat eq "1", etc.. to your cat numbers
CLONE your products_t.tpl and make it look how you want it -- I called mine, products_t2.tpl

This code basically looks for category 1, 2 or 3, and instead of using the normal products_t.tpl, it uses products_t2.tpl

OR -- just buy Jon's mod and it will be MUCH simpler - AND you can then have an assortment of templates to use at any time, for any category. You only change the source once ( for the mod) and that's that.


All times are GMT -8. The time now is 01:44 AM.

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