View Single Post
  #2  
Old 05-14-2012, 07:12 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Load different style sheets for main categories

Not an easy request unfortunately. I am thinking about how this might be accomplished...

It is easy to write an if statement for the category page itself in smarty:
PHP Code:
{if $cat eq 1}
 Do 
this
{elseif $cat eq 2}
 Do 
that
{/if} 

Getting it to stick on all the sub cats and products is going to be the tough part. You will have to write some php code that looks at the entire category structure, then determines which main category this particular product or category is in. Certainly not impossible, but a little daunting.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote