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 ...
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!
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 thefix.if ($new_qty > $add_max) { {
I tested the 1.3.9e file (adding in thefix.if ($new_qty > $add_max) { {
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
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!
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!
PM sent
Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41
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!
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
The real fix to this ... and do test this ...
In the file:
/includes/classes/shopping_cart.php
Add to the code around line 1557:
Change this line: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]);
to read:Code:if (($add_max == 1 and $cart_qty == 1)) {
Change this line:Code:if (($add_max == 1 and $cart_qty == 1) && $new_qty != $cart_qty) {
to read:Code:if (($new_qty + $cart_qty > $add_max) and $add_max != 0) {
and let us know how this works for you ...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)) {
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!
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
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
Bookmarks