Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    5,387
    Plugin Contributions
    206

    Default [Done v1.3.9e] Clearing quantity field on shopping cart should be the same as "0"

    This is behavior that used to work in 1.3.8 and has been broken in 1.3.9. The fix is simple; in includes/classes/shopping_cart.php, above line 1535, add

    if ($_POST['cart_quantity'][$i] == '') {
    $_POST['cart_quantity'][$i] = 0;
    }

    Scott
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,350
    Plugin Contributions
    6

    Default Re: Clearing quantity field on shopping cart page should be the same as entering "0"

    If I enter 12 for a product and add to cart .. I see 12 ...

    If I then, on the shopping_cart page, change the value to 0 it gets removed from the cart ...

    Now if I change it to "nothing" as in blank, it goes back to 12 ...

    Is this what you are meaning on this one?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    5,387
    Plugin Contributions
    206

    Default Re: Clearing quantity field on shopping cart page should be the same as entering "0"

    Yes, exactly. I believe that clearing the field to nothing or blank should be the same as entering 0. This was the behavior in 1.3.8, and I believe it is the most intuitive response to this action. My small code fragment makes it work this way.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 23 Mar 2015, 01:46 PM
  2. Replies: 5
    Last Post: 21 Apr 2013, 11:37 PM
  3. Remove "Quantity" section in shopping cart
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Aug 2011, 04:29 PM
  4. Shopping cart - trying to turn off "Total Items" "Weight" and "Price"
    By deshojo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 4 Apr 2011, 07:15 PM
  5. need compulsory field(s) on the "Shopping Cart" page
    By frank18 in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2009, 10:21 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