Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Different color background based on product category


Recommended Posts

My client wants the background color to be different based on the product category that the user is in.


Can anyone give me an idea of how difficult this would be? I know a little Php, but certainly not an expert.




Link to comment
Share on other sites

I'm just wingin' it here, but I would think it shouldn't be more than moderately difficult.


If you create a bunch of new classes in your stylesheet.css (one for each category) and then create a bunch of if/else statements to call the appropriate class from product_info.php, you should be able to end up with the chosen background in the main body of each individual product page.


But, like I said... I'm just throwin' this off the top of my head

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...