Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Product listing show/hide more info by category

    In my store there is a category which never requires more info to show. I would like to have an add to cart option show up in the product listing, but only for that one category. Has anyone ever tried this?

    Thanks

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

    Default Re: Product listing show/hide more info by category

    By default, only products without attributes show the add to cart button; you can specify it to show in Configuration > Product Listing > Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product).

    If other categories have a mix of products with and without attributes, the ones without would then show the add button. What is your situation?

    It should be possible to add a test in product_listing.php to control this behavior.

  3. #3
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product listing show/hide more info by category

    Thanks for the quick reply.

    In my situation none of the products have attributes. Some products may have detailed descriptions which would require the more info button.

    The products which don't require the more info button have very short or no desription at all.

  4. #4
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product listing show/hide more info by category

    Correction - some products may have attributes after all.

    Does anyone know of a way to have the "more info" button display at the same time as the "add to cart" ?

    Thanks

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

    Default Re: Product listing show/hide more info by category

    That is not possible.

    Attributes require a choice to be made before the product can be added to cart, and the product listing is not set up to process that. You always need to go to the product info page to select attributes.

    I understand there is a way to add the attribute processing function to the listing page, but it would require advanced PHP skills and a good knowledge of the underlying ZC structure.

  6. #6
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product listing show/hide more info by category

    Thank you for the reply Glenn.

    I understand that "buy now" cannot possibly be an option when there are attributes that need to be chosen. But that's not really what I'm wondering.

    Hopefully I can explain this a little better. I have a product listing page displaying several products.
    Product "A" has attributes and therefore displays only the "more info" button. Product "B" has no attributes and a short description, so the "add to cart" is available, but not the "more info" button.
    Product "C' has no attributes, but has a very long description.

    What I want to display for product "C" is the "add to cart" so returning visitors don't have to click the "more info" button and will have a quicker checkout, AND I also want to display the "more info" button for first time visitors so they can go to the product info page and get a full description of the product.

    Product "C" has no attributes, so can it show both?

    Thanks again.

    Bob

  7. #7
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product listing show/hide more info by category

    OR...

    Is it possible to simply duplicate the code which creates the link in the Title of the product, and apply it to an image.

    Hmm..
    That would cause an issue with products which have attributes showing 2 more info buttons.

    Unless...
    I make the original moreinfo button a 1px x 1px white gif.

    Does this sound doable?

    Thanks

    Bob

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

    Default Re: Product listing show/hide more info by category

    For the case you describe, yes it could.

    It would require finding the code that truncates the description and sets the more info flag, and setting a parallel "show add" flag, then modifying the code in product_listing.php to show both in that case.

  9. #9
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Product listing show/hide more info by category

    Thanks Glenn!

    That makes sense. Now for the fun part.
    Hopefully I can figure this out. I'll post my results if I'm successful.

    Bob

  10. #10

    Default Re: Product listing show/hide more info by category

    This is what I need I think...as long as my customers have the option to just add the product on the listing page, I would be fine with the more info showing up too.
    Is there an easy way to combine these? Or a way at all? My husband is the web guru, and can handle it if I know where to direct him.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Hide product listing description by category
    By simon1066 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jan 2012, 10:53 AM
  2. Add More Info Button after Buy Now on category listing
    By gothstone in forum General Questions
    Replies: 46
    Last Post: 22 Jan 2009, 09:52 PM
  3. Remove submit button (or more info) on one category listing.
    By erezw in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Nov 2008, 07:02 AM
  4. Product Listing - More Info
    By dab in forum Customization from the Admin
    Replies: 4
    Last Post: 1 Jul 2007, 02:13 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