Forums / General Questions / Max Product Quantity = 1 doesn't always work

Max Product Quantity = 1 doesn't always work

Locked

Views: 921

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 Sep 2009, 6:47 AM
#1
shaztesting avatar

shaztesting

New Zenner

Join Date:
Jun 2009
Posts:
71
Plugin Contributions:
0

Max Product Quantity = 1 doesn't always work

I have just come accross a bug with this and i don't know how hard it is to fix.

This method (Max Quanitity =1) works when the user is already logged in and within the same session. For example, if the cart has 'product A' and user tries to add that product again, the action is prevented and the following error message appears:
"The quantity added to your cart has been adjusted because of a restriction on maximum you are allowed. See this item: product A"

However, if the 'product A' was added to the cart in a previous session, the store allows the user to add a second (or third or fourth, etc...) product A even when the max quantitiy value is set to 1. For example the user is logged out but their account already holds 'product a' in their shopping cart. The user adds another 'product a' while in the visitor's cart and seeks to checkout. They are then prompted with a login request and when complete they now have 2 of 'product a' with the following message:
"NOTICE: For your convenience, your current shopping cart has been combined with your shopping cart from your last visit. Please review your shopping cart before checking out."

  1. How hard is it to fix this bug? So that the store check's whether product max quantity is reached before merging the visitor cart and the user cart?

Thanks in advance,
Shaztesting

24 Sep 2009, 4:47 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Max Product Quantity = 1 doesn't always work

I cannot reproduce this issue ...

Have you any more details about this or an URL that we could perhaps peek at? :smile:

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!]
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!

24 Sep 2009, 9:09 PM
#3
shaztesting avatar

shaztesting

New Zenner

Join Date:
Jun 2009
Posts:
71
Plugin Contributions:
0

Re: Max Product Quantity = 1 doesn't always work

Hi Ajeh,

I am using 1.38a and a number of add-ons installed. Unfortunately the website is for internal use only and not open to the web.

if you can't reproduce it then one of the addons must be interfering with the way combine cart looks at max values.

Even if a clean install works fine, I still couldn't re do the 100's of hours spent customizing the current cart. How would you best troubleshoot an error like this? Which php files are most likely affected?

I had a look at the 1.38 fixes thread and nothing in there is similar to this error. It doesn't seem like the solution to this specific error, am i wrong?

attacking the issue from a completely different angle is there any way to limit the whole cart to only ever holding one order at any one time? So not limiting it from a product perspective but rather a cart perspective.

thanks,
shaztesting

24 Sep 2009, 9:12 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Max Product Quantity = 1 doesn't always work

First ... do a clean install in a clean directory and a clean database ...

Does it work?

If so, use something like Beyond Compare from scootersoftware.com and see if it might help you spot something out of sorts with the files or something that might appear to have a conflict on the files ...

I am assuming that you have tried switching to the Classic Template just to rule out a templates and overrides issue on this ...

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!]
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!

24 Sep 2009, 9:17 PM
#5
shaztesting avatar

shaztesting

New Zenner

Join Date:
Jun 2009
Posts:
71
Plugin Contributions:
0

Re: Max Product Quantity = 1 doesn't always work

Thanks,

you're the best! I'll try comparing all the files today and let you know how i go tomorrow.

cheers!