Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

a humble newcomer's question


Recommended Posts

I have a particular need to alter the "livery" of the shop depending on the department. For example by a different bgcolor, background, and image (logo, for example) to be applied to the top and left bar, and a different background for the main part (I don't yet know whether it is a frame or a table column). All of these to be selected automatically by department - sort of shops within a shop. Are these configurable in osCommerce in a standard install?





Link to comment
Share on other sites

I do not see an easy way of doing that but here is what you can try.


replace this line (in many files)

<link rel="stylesheet" type="text/css" href="stylesheet.css">


with something like this


if ($Category == "CategoryName") {

echo "<link rel="stylesheet" type="text/css" href="$Category.css">";


echo "<link rel="stylesheet" type="text/css" href="stylesheet.css">";



You have to have a few *.css files with names as category names.


Note: this is a generic idea and code

Link to comment
Share on other sites


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

  • Create New...