Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: [DONE v1.3.9f] The quantity added to your cart has been adjusted because of a res

    If you have not made any changes previously to the:
    /includes/classes/shopping_cart.php

    what happens if you load the file from the v1.3.9f to the server?

    Make sure that you are updating the file on the server and see the changes ...
    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!

  2. #12
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: [DONE v1.3.9f] The quantity added to your cart has been adjusted because of a res

    Hi sorry if I wasn't clear, all testing above is on a live server.

    I tested the 1.3.9f file (which does not contain the
    if ($new_qty > $add_max) { {
    fix.

    I tested the 1.3.9e file (adding in the
    if ($new_qty > $add_max) { {
    fix.


    nothing works but the 1.3.9d file. The trouble makers are the two added lines up there in e/f Line 1535-1537:and Line 1546:
    Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: The quantity added to your cart has been adjusted because of a restric

    umm ... I need to look into this further ... I thought I committed the fix to v1.3.9f ...

    Let me check a few things ...
    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!

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: The quantity added to your cart has been adjusted because of a restric

    Oops ... guess it is not in v1.3.9f ... sorry about that ...

    Have you an URL to your site where I can see this one with errors with the checkboxes to make sure everything is covered?
    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!

  5. #15
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: The quantity added to your cart has been adjusted because of a restric

    PM sent
    Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: The quantity added to your cart has been adjusted because of a restric

    Thanks for that ...

    I did finally reproduce the problem with the checkboxes ... back to the drawing board ...
    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!

  7. #17
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: The quantity added to your cart has been adjusted because of a restriction on max

    About to upgrade to 1.3.9g.

    The coding that created this bug is still in.

    Is there a workaround? or is it safe to remove the 2 lines of code that were added in 1.3.9e/f now g? in order to fix this issue (warnings when customer edits shopping cart)
    Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: The quantity added to your cart has been adjusted because of a restriction on max

    The real fix to this ... and do test this ...

    In the file:
    /includes/classes/shopping_cart.php

    Add to the code around line 1557:
    Code:
             $add_max = zen_get_products_quantity_order_max($_POST['products_id'][$i]);
             $cart_qty = $this->in_cart_mixed($_POST['products_id'][$i]);
             $new_qty = $_POST['cart_quantity'][$i];
             $current_qty = $this->get_quantity($_POST['products_id'][$i]);
    Change this line:
    Code:
            if (($add_max == 1 and $cart_qty == 1)) {
    to read:
    Code:
            if (($add_max == 1 and $cart_qty == 1) && $new_qty != $cart_qty) {
    Change this line:
    Code:
              if (($new_qty + $cart_qty > $add_max) and $add_max != 0) {
    to read:
    Code:
              if ($add_max != 0 && $new_qty > $current_qty && ($cart_quantity - $current_qty + $new_qty) != 0 && (($cart_quantity - $current_qty + $new_qty) + $cart_qty > $add_max)) {
    and let us know how this works for you ...
    Last edited by Ajeh; 3 Nov 2010 at 09:35 PM.
    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!

  9. #19
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: The quantity added to your cart has been adjusted because of a restriction on max

    Upgrading to 139h hopefully next week, I'll test it out on hthanks!
    Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

  10. #20
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: The quantity added to your cart has been adjusted because of a restriction on max

    So far this fix seems to work flawlessly on 1.39h! Thanks for reading all my posts and fixing this issue!
    Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 4 Mar 2011, 01:39 AM
  2. Editing Attribute selecitons once product has been added to cart
    By emilekott in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Jun 2010, 07:44 PM
  3. Replies: 2
    Last Post: 1 Oct 2009, 10:18 PM
  4. Customising the Your Account Has Been Created! message
    By kelpie in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Sep 2008, 04:43 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