osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Changing page color

This is a discussion on Changing page color within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Howdy. I'm running a site for a company, using osCMax. They have a catagory for "Pink" items. They would like ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-20-2005, 11:18 AM
Lurker
 
Join Date: Dec 2005
Location: Sector 001.01
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ShawnAutoDMC
Default Changing page color

Howdy. I'm running a site for a company, using osCMax.

They have a catagory for "Pink" items. They would like for the page to have something "Pink" on it when browsing the Pink catagory or any of the Pink items.

What I'm trying to figure out is how do I add an item/change a color of something on the page dependant on the catagory being viewed?

I'm currently reading the template PHP code, but I must admit that I don't even know where to start looking.

Thanks for anybody who can understand my problem and help!
Shawn.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-20-2005, 11:30 PM
New Member
 
Join Date: Nov 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nootkan
Default

Not sure which template you are using, but I would start by looking at the stylesheet.css file in the template directory. Just start changing colours and see where it leads you. There are some good documents in the How to section of the OscDox Guide link on the left side of this forum also.
__________________
Nootkan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-21-2005, 07:03 AM
Lurker
 
Join Date: Dec 2005
Location: Sector 001.01
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ShawnAutoDMC
Default

Mainly what I was looking for was the PHP code that decides what catagory is being shown, so I could switch the stylesheet if das customers go into "Pink", then switch back to normal when they go into "Mens Wear."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-23-2005, 10:41 PM
jpf's Avatar
jpf jpf is online now
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,581
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

It all done with CSS and has NOTHING to do with PHP as COLOR is NOT determined at any point with PHP...it is straight HTML and CSS Styles.... However you could cause PHP to CHANGE the style defined in the HTML....depending on the catagories..... This would require changing ALL the HTML and coding "IFs" in PHP... or maybe by APPENDING the catagory number/id.... then in CSS define "pink" theam just for the ladies and normal for all other.....

TD.main, P.main {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
line-height: 1.5;
}


TD.main.23, P.main23 {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
line-height: 1.5;
}

(where 23 is the ID for LADIES catagory...)


A SIMPLER solution (and I did this for another company - they wanted different colors on EACH catagory)

Wrap all PICS with a BOADER color (I use a SCRIPT that created a "correct maximum size" main pic and a thumb nail and gave each a 10pixel wide solid color boarder)


OR you could look a using a MULTI-STORE setup....

Multiple "Mini-Stores" with 1 Admin
http://www.oscommerce.com/community/contributions,1534

Which allow you to offer same or diffent product on each site but each site can have totally diffent looks/feal..... Thus a Pink Girly Girl site at http://yoursite/ladies/index.php and then have a Macho Mens site at http://yoursite/mens/index.php and a default at http://yoursite/main/index.php all ADMIN would be worked in ONE admin site...https://yoursite/someadmindir/index.php


Then put in each site a LINK to the "MEN WARE " or "Womens ware" button in the header....

Good Luck!
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
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
changing colors; cant find colum color in stylesheet Redeye_Joe osCMax v2 Customization/Mods 1 03-17-2006 10:04 PM
Changing Background color tclhost osCMax v2 Customization/Mods 2 11-05-2005 02:00 PM
Changing Background Color of Header knowgangs osCMax v1.7 Discussion 2 07-12-2005 11:32 AM
Changing Product Info Font Color JaaMor osCommerce 2.2 Modification Help 2 11-11-2003 06:46 PM
Changing the color of the box headings annea03 osCommerce 2.2 Modification Help 2 09-03-2003 12:06 PM


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


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