Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Add to cart w/ quantity=0 is allowed?

    Running (off-line) using 1.38a + security mods + FEC:

    I've got my store setup to use a quantity box along with the add-to-cart button. When I set the quantity to 0 and press add-to-cart, a message appears ("Successfully added Product to Cart") but, of course, the cart is still empty.

    What module need I modify to catch this entry error?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add to cart w/ quantity=0 is allowed?

    In my stock Zencart test site, it doesn't do that. Maybe the FEC mod?

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Add to cart w/ quantity=0 is allowed?

    Thanks for the response, I'll check it out.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Add to cart w/ quantity=0 is allowed?

    Well, I rolled back to my initial install to see what's up ... and the behavior is still there. I don't know if it matters, but my products have attributes.

    Here are the cart/quantity-related settings I've got in admin:

    My Store:
    - Display cart after adding product: false

    Product Listing:
    - Display Product Add to Cart Button: 2 (on w/ Qty Box per product)
    - Display Multiple Products Qty Box Status and Set Button Location: 0 (off)

    Product Info:
    - Product Quantity Box Status - Adding new Products: 1 (show Qty Box and default Add to Cart to 1)

    When you get the error after an attempt to add 0-quantity to the cart, is it a javascript message or a php-related message that you receive?

 

 

Similar Threads

  1. v153 > instock allowed to add to cart and checkout.
    By RixStix in forum Basic Configuration
    Replies: 7
    Last Post: 27 Jun 2015, 08:31 PM
  2. Add an add to cart button under each product quantity on the category page
    By buxton1 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Apr 2010, 06:37 PM
  3. Max Quantity allowed to order
    By enddes in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 13 May 2009, 12:38 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