X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Different Stylesheet for Each Manufacturer (https://forum.x-cart.com/showthread.php?t=43230)

joannet 10-25-2008 01:37 PM

Different Stylesheet for Each Manufacturer
 
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.

JWait 10-25-2008 02:12 PM

Re: Different Stylesheet for Each Manufacturer
 
I suppose you could base it off of the manufacturer id and have a stylesheet for each one.

joannet 10-25-2008 02:27 PM

Re: Different Stylesheet for Each Manufacturer
 
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

JWait 10-26-2008 06:58 AM

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.

joannet 10-28-2008 08:57 PM

Re: Different Stylesheet for Each Manufacturer
 
Hi,

Thanks very much for your suggestions.

Most appreciated :)


All times are GMT -8. The time now is 09:11 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.