Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    Default Adding products with attributea in cart from product listing

    Hi all
    I have a shop with Zen Cart 1.5 and i am using attributes on some products just for filtering. Attributes don't display on product page, cannot be changed or selected by customer, i just use them for advanced product filtering. The problem is that products with attributes cannot be added in cart from product listing (All products, Specials, Category, etc) and when a customer wants to do a quick add to cart it gets redirected to product page to choose the attribute. Is there any way i can modify the files to ignore the attribute condition and add these products directly to cart? If yes, what are the files i have to modify?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Adding products with attributea in cart from product listing

    When you say just for filtering, are you using the Read-only attribute type that is defined in the option name manager or have you chosen some other form of attribute type?

    If you are using the Read-only type and having this issue of adding product to the cart that have attributes, check the setting of: configuration->attribute settings->Read Only option type - Ignore for Add to Cart. It seems like that should be set to 1.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding products with attributea in cart from product listing

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Adding products with attributea in cart from product listing

    Quote Originally Posted by mc12345678 View Post
    When you say just for filtering, are you using the Read-only attribute type that is defined in the option name manager or have you chosen some other form of attribute type?

    If you are using the Read-only type and having this issue of adding product to the cart that have attributes, check the setting of: configuration->attribute settings->Read Only option type - Ignore for Add to Cart. It seems like that should be set to 1.
    Thank you very much for this answer. It did the trick :) I was totally ignoring the read-only type, also i didn't know about the ignore option. It seems every day i have something new to learn :)

    Quote Originally Posted by DrByte View Post
    Thank you for your answer. This time the solution was simple :) I am bookmarking this topic anyway for just in case :)
    Last edited by randomm; 14 Mar 2017 at 02:37 PM.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Adding products with attributea in cart from product listing

    Glad that it helped resolve the issue and broaden your horizons on the capability and operation of ZC!
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v155 Problem adding products to cart from product listing page
    By teaj in forum General Questions
    Replies: 15
    Last Post: 25 Feb 2017, 10:52 PM
  2. v154 Problems when adding to cart from product listing page
    By TinaS in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 22 Jan 2015, 01:37 AM
  3. add to cart button on product listing (for products with attributes)
    By easy3dsource in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Apr 2011, 06:08 PM
  4. Products with Attributes / Add to Cart buttons on the Product Listing page?
    By Pink in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Jun 2010, 10:04 PM
  5. Adding Additional Attributes to Product Listing from Custom Product Type
    By Bigman in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Aug 2008, 04:29 PM

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