Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2011
    Posts
    27
    Plugin Contributions
    0

    Default Long shot - Different color scheme based on category selected

    IT's a long shot, but here goes.....
    I sell tractor parts and customers are quite brand loyal. Each brand is also quite color specific.
    Is there any way that when a customer selects a top-tier category, something (even a colored line) changed to that brand's color.
    For example, Allis Chalmers tractors are orange. John Deere is green.
    Once a customer selects Deere, a header, a colored line, something, changes to green to make them feel brand loyal.......

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,018
    Plugin Contributions
    61

    Default Re: Long shot - Different color scheme based on category selected

    I would use a hook for the category to display an image or such.

    Like this only the hook is the category

    http://www.zencartmarketing.com/main-page-include-only/

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Long shot - Different color scheme based on category selected

    You can use category-specific stylesheets to set the color (for instance) of an element based on the current category.
    Say the John Deere category is id 23; add a file c_23.css to /includes/templates/your_template/css/, with content of

    #yourElementID {color: 00ff00;}/*green for jd*/


    The base stylesheet would have a rule like

    #yourElementID {color: #aabbcc;}/*gray or whatever you want*/

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Long shot - Different color scheme based on category selected

    You could do the same with a background image for the header or another image; you could also use Smart Backgrounds for fine control of this.

  5. #5
    Join Date
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Re: Long shot - Different color scheme based on category selected

    Quote Originally Posted by gjh42 View Post
    You can use category-specific stylesheets to set the color (for instance) of an element based on the current category.
    Say the John Deere category is id 23; add a file c_23.css to /includes/templates/your_template/css/, with content of

    #yourElementID {color: 00ff00;}/*green for jd*/


    The base stylesheet would have a rule like

    #yourElementID {color: #aabbcc;}/*gray or whatever you want*/
    Very cool - did not know this!

 

 

Similar Threads

  1. v139h Getting Creative: Probably a long shot, but...
    By directformulas in forum General Questions
    Replies: 3
    Last Post: 23 Mar 2012, 11:40 AM
  2. Changing the Color Scheme?
    By TurtleDove in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 9 Oct 2006, 04:31 AM
  3. Changing color scheme in title boxes
    By joekatona in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Jul 2006, 11:25 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR