Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

3 Categories 3 different Designs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-07-2008, 09:17 PM
  mitash's Avatar 
mitash mitash is offline
 

X-Adept
  
Join Date: Jan 2006
Location: Australia
Posts: 450
 

Default 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
__________________
eCommerce - Strategy / Design / Development / Marketing / Maintenance

Call within Australia:
Phone: 1300 648 274 | Mobile: 0417 241 950
Call outside Australia:
+61 417 241 950 |

Email:
results@mitash.com | Skype: mitashau | Web: www.mitash.com
Reply With Quote
  #2  
Old 01-07-2008, 09:41 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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).
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 01-07-2008, 09:49 PM
  mitash's Avatar 
mitash mitash is offline
 

X-Adept
  
Join Date: Jan 2006
Location: Australia
Posts: 450
 

Default Re: 3 Categories 3 different Designs

thanks for your reply...
is it possible to see an example..?
__________________
eCommerce - Strategy / Design / Development / Marketing / Maintenance

Call within Australia:
Phone: 1300 648 274 | Mobile: 0417 241 950
Call outside Australia:
+61 417 241 950 |

Email:
results@mitash.com | Skype: mitashau | Web: www.mitash.com
Reply With Quote
  #4  
Old 01-08-2008, 05:09 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:25 AM.

   

 
X-Cart forums © 2001-2020