Different colour scheme for main categories
I have seven main root categories:-
- Running
- Football
- Rugby
- Hockey
- Boxing
- Netball
- Specials
With in those I have subcategories, ranging from 6 to 30.
However, what I would like is to have a different colour scheme for each of those main categories mentioned above, so seven colour schemes. This I roughly know how to do:-
Create a copy of home.php and rename it running.php etc. And then link to the category in them:- running.php?cat=2 for example, however if you changed the category number you could show items from the football section within the running section.
Plus I would like the colour scheme to run through to product detail level. As this reverts to the homepage colour scheme.
So my question is, is it possible to create some small variable smarty script which will identify the main root category and then load the appropiate style sheet?
Example
if cat=1
show style 1.css
if cat=2
show style 2.css
elseif cat=3
show style 3.css
I know that it is only a basic example, with only three categories, but I have upto 60 categories in total, plus more will be created while we add future products on but with category disabled (so a possible 100+ categories).
Basically a modification which would recognise the main root category eg. running and then select the style for that category and all subcategory's and detailed product views within that main category.
And I also have a deadline of end of October, so if this would take a while to do please tell me and I will put this idea on the back burner. But it would be nice if it was possible to do.[/list]
__________________
X-Cart 4.0.17
|