Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2007
    Location
    England
    Posts
    17
    Plugin Contributions
    0

    Default Change colour depending on catogory selected

    Hey all!

    I got a idea for my site but i wanna know if it is possible at all.

    The idea is that the user is on ones section and its one colour and then when they go onto another section the page and sidebox colours all change?

    I've tried a few things to no avail so any help would be greatly recieved.

    Check out my store at the bottom to!
    Cheers!

    Aaron

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Change colour depending on catogory selected

    I'm not sure this will help, but I know you can change the layout with different product types, but there's not a category type that I know of.

    I've been working on this tow, but simply trying to change the header photo instead of the colors.

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Change colour depending on catogory selected

    This can be done using different stylesheets.

    Check the readme_css_system.html file in your docs folder. That should sort you out! :)

  4. #4
    Join Date
    Mar 2007
    Location
    England
    Posts
    17
    Plugin Contributions
    0

    Default Re: Change colour depending on catogory selected

    thanks for the response but im still having trouble, and thats not just with my broken arm!

    The pages i want to change have been automatically generated by zen cart when i created the different catogories. If you have a look at my sight, i want most of the pages as they are now but to have to girls page as pink would be great!

    thanks again
    Cheers!

    Aaron

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Change colour depending on catogory selected

    That would be simple create a style sheet named c_2.css (c is for category and the 2 is the the category ID). Only put the the statements in that stylesheet you want to change from the default you have in the main stylesheet. This stylesheet will only load when you are in category 2. This can be taken out further to include sub cats by adding the sub cat id # (c_2_10.css)......have fun
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    Mar 2007
    Location
    England
    Posts
    17
    Plugin Contributions
    0

    Default Re: Change colour depending on catogory selected

    guys thanks for all the help - it was perfect - check my site out mow and tell me what you think any comments are always helpful!
    Cheers!

    Aaron

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Change colour depending on catogory selected

    As the main stylesheet is loaded first it is redundant to reload all of the statements for the c_2.css So the minimum that should be in c_2.css would be the following:
    Code:
    /**
     * Main CSS Stylesheet
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: stylesheet.css 4813 2006-10-23 02:13:53Z drbyte $
     */
    
    body {
    	background-color: #FF00FF;/*Side boarder colour*/
    	}
    
    input:focus, select:focus, textarea:focus {
    	background: #FF00FF;
    	}
    
    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    	background-image: url(../images/tile_backpinktop.gif);/*this is the title bar colour*/
    	}
    
    #navCatTabsWrapper { /*this is the link bar under the title bar*/
    	background-color: #ffffff;
    	color: #000000;
    	background-image: url(../images/tile_backpinkbottom.gif);
    }
    
    #navEZPagesTop {
    	background-image: url(../images/tile_backpinktop.gif);
    	}
    
    .leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
    	background-image: url(../images/tile_backpinktop.gif);
    	}
    
    .productListing-rowheading {
    	background-image: url(../images/tile_backpinktop.gif);
    	}
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. VAT added depending on Attributes selected
    By JaminT in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 15 Jan 2012, 08:12 PM
  2. Discount depending on selected payment mode?
    By flix in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 15 Jul 2010, 09:12 AM
  3. How to make image change depending on attribute selected?
    By canemasters in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 1 Aug 2007, 06:33 PM
  4. Change the link colour of selected category...
    By Alex Clarke in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jul 2007, 08:09 AM
  5. Limiting Shipping Options Depending on Payment Option selected
    By zigzak in forum Addon Shipping Modules
    Replies: 0
    Last Post: 17 Sep 2006, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg