| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Different Stylesheet for Each Manufacturer | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I was wanting to have different stylesheets for each Manufacturer. Basically when each Manufacturer is viewed, the text, links, box headers, etc need to be unique to that particular Manufacturer. Could you anybody advise how to achieve this? Thanks. |
|||||||
#2
|
|||||||||
|
|||||||||
![]() I suppose you could base it off of the manufacturer id and have a stylesheet for each one.
__________________
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 |
|||||||||
#3
|
|||||||
|
|||||||
![]() Yes, exactly as I thought.
Would you happen to know the code to use and where to place it on customer/home.tpl or other? Thanks |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#5
|
|||||||
|
|||||||
![]() Hi,
Thanks very much for your suggestions. Most appreciated ![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|