View Single Post
  #4  
Old 10-26-2008, 06:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Different Stylesheet for Each Manufacturer

Well, I think a lot would depend on if you want to retain the classes from skin1.css or change them all. If you redefine a class with a new stylesheet it will be the "default" unless it is again redefined by another stylesheet. It would be the same as defining a class "last" in skin1.css, the original class would be "forgotten" with the new one. It can get very complicated very quickly.

I'm not sure of the actual syntax or variables to use, but it could be something like...

{if $manufacturerid ne ''}
<link rel="stylesheet" href="{$SkinDir}/{$manufacturerid}.css" />
{else}
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" />
{/if}

and put in skin1/customer/home.tpl where "<link rel="stylesheet" href={$SkinDir}/{#CSSFile#}" />" is presently.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote