I have been trying to find a solution for hours... Any comment / guidance would be very much appreciated!.. Thanks... I created an extension for listing different products by category. what I am trying to accomplish is changing the background of the entire site according to the category that is set, for example: electronics would be blue background, fashion would be red background etc...
I have a few problems: 1. The sorting function for the categories is dynamic, (dropdown list / submit button) so the page doesn't change (only what it shows in the module changes) so I cannot use different templates for different pages, 2. I cannot use page suffix to define a new template.
A good solution would be a php statement like: if ($categoryId == X) --> set_new_background, but the class for the site background is set outside of the php file I am working on. Also setting a background for the DIV will not change the sites background.
Any ideas and help would be very much appreciated! Thank you!
Report this post