Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default 'Highlighting' certain items

    Trying to find out if I can "highlight" a product in some way - different color background, bigger text, anything - in the product listings.

    The store has several small products that can be purchased separately, but we also sell the entire set. We want the "Entire Set" product to be more prominent in product listings.

    Any ideas? Thanks!

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

    Default Re: 'Highlighting' certain items

    A link to your site would let us give specific suggestions...

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

    Default Re: 'Highlighting' certain items

    If the entire set will always be the top item in the product listing, you can give it a different background with CSS.
    Code:
    .productListing-rowheading+.productListing-odd {background-color: #ddeedd;}
    This will work in modern browsers like Firefox and IE7, but it will be ignored by IE6.

    If there are categories that will not have a set you want to highlight, you can specify the above to not apply to a single category, or specify each category where you do want it, whichever is easier. You would do this by adding the appropriate id, like #cat1_5Table for the Embroidery > Retro listing:
    Code:
    #cat1_5Table .productListing-rowheading+.productListing-odd {background-color: #ddeedd;}
    To function for IE6 users, you will need to add a class tag in product_listing.php.

  4. #4
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: 'Highlighting' certain items

    Great...thanks!


    So this would go anywhere in the generic stylesheet of the template?

  5. #5
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: 'Highlighting' certain items

    Another question, how can I flip this so that instead of the first, the last item is the one highlighted?

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

    Default Re: 'Highlighting' certain items

    It could probably go most anywhere. I would put it either with similar declarations, or at the end of the file, to make it easier to find.

    Moving the highlight to the end of the list will be trickier, and may require adding a class in product_listing.php.

  7. #7
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: 'Highlighting' certain items

    Moving the highlight to the end of the list will be trickier, and may require adding a class in product_listing.php
    OK. Can you give an example of this?

 

 

Similar Threads

  1. Only allowing certain customers to see certain items
    By jackxeus in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Sep 2010, 10:13 PM
  2. Free Shipping only certain items. All other items perunitweight
    By design4dotcom in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Jun 2009, 02:08 AM
  3. Need Help W/ Applying Certain Shipping Methods To Certain Items While Using Flat Rate
    By SennaNight in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jun 2008, 04:52 AM
  4. Need help with module configuration--enable certain payment module for certain items
    By maxus in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Mar 2008, 04:24 PM
  5. Highlighting certain categories on home page only
    By maxilious in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Jun 2007, 08:35 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