Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

a humble newcomer's question


coerdelion

Recommended Posts

Posted

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?

 

TIA

 

richard

Posted

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">";

}else{

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

Archived

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

×
×
  • Create New...