Color change by category

Two questions:



#1

I was asked if it would be possible to change the basic color dependent of the category that a user goes to?



#2

On the category buttons can I place a different image/icon related to product sold bin the category?





I assume both of these are a design team job.



thanks for any sugesstions,

David

this is off the top of my head but basically what you would do is call a different styles.css based on the selected category, example:


{if $category.category_id = '22'}
styles22.css
{elseif $category.category_id = '23'}
styles23.css
{elseif $category.category_id = '24'}
styles24.css
{elseif $category.category_id = '25'}
styles25.css
{else}
styles.css
{/if}

Could you explain more of this. I was looking at the different stadard colors that come with cs cart. So I would have to create more. and there are so many small little bits and pieces. This may take quite some time. If you could go deeper on the switch mechinism and how to call different color sets.



Thanks,

David

Hello,



I tried what you told… But doesn’t work…



I tried it too :



{if $category.category_id == ‘527’}


{elseif $category.category_id == '457'}

{else}

{/if}

But does'nt work.. So?? Any idea?

Thanks

Hello,



Any idea?? thanks…