osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Dynamic Stylesheet

This is a discussion on Dynamic Stylesheet within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Dynamic Stylesheet for osC Using this small piece of code will allow a different look for your shop in different ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Welcome to osCMax Join osCMax Now! Download osCMax Here
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-13-2007, 07:12 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,494
Thanks: 83
Thanked 356 Times in 334 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Dynamic Stylesheet

Dynamic Stylesheet for osC

Using this small piece of code will allow a different look for your shop in different circumstances, for example changing the style once the customer has logged in, or allowing a different look for different customer groups, if you are using a B2B contribution. I'm sure there must be many more cases in which it would be nice to make your stylesheet more dynamic.

This contribution turns your static stylesheet.css into a dynamic stylesheet.php file, after which every stylesheet element can be replaced by dynamic (php string) values. Only a very small fix is needed to achieve this.

This contribution is only the first step to making your stylesheet dynamic. It allows for many varieties of dynamic stylesheets, depending on your wishes, and your coding skills ;)

The support thread for this contribution is: http://forums.oscommerce.com/index.php?showtopic=279835


More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
stylesheet issue gnfb osCommerce 2.2 Modification Help 1 04-21-2007 02:07 AM
Stylesheet with descriptions michael_s New osCommerce Contributions 0 03-11-2007 05:10 AM
stylesheet-css.css samsin1 osCMax v1.7 Installation 3 09-16-2004 03:21 PM
stylesheet help Dumb_Question osCommerce 2.2 Modification Help 5 04-13-2003 08:59 PM
problem with my stylesheet.css Anonymous osCommerce 2.2 Modification Help 1 10-18-2002 09:30 PM


All times are GMT -8. The time now is 07:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax