If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / single product (only one of) can be added to cart multiple times

single product (only one of) can be added to cart multiple times

Started by gandalfsmith on 6 Mar 2013, 6:11 PM · Views: 1,144

Results 1 to 5 of 5
6 Mar 2013, 6:11 PM
#1
gandalfsmith avatar

gandalfsmith

New Zenner

Join Date:
Oct 2011
Location:
Toronto Canada
Posts:
69
Plugin Contributions:
0

Post #1 by gandalfsmith

I am having the same problem as this person was on this thread:
http://www.zen-cart.com/showthread.php?204863-Not-a-bug-single-product-%28only-one-of%29-can-be-added-to-cart-multiple-times

Our settings are correct:
Check stock level true
Subtract stock true
Allow Checkout false
Mark product out of stock ***
Products status in Catalog when out of stock should be set to 0

And yet it still allows people to checkout with more items than are available, it then sets the products quantity to -1. We have had to refund 2 orders now and not sure what is causing this to happen.

Payment Modules In Use:
Authorize net aim

Shipping Modules In Use:
Ceon Advanced Shipper
Fedex Web Services

Other Modules In Use:
Sitemap XML
Google Analytics

Have searched forums all day and cannot find a solution - any help would be appreciated.:unsure:

Site is winez2u.com

6 Mar 2013, 7:55 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Can you list the exact steps required to duplicate this experience?

(Yes, I'm also asking whether you've tried to recreate the problem and isolate any specific conditions under which it happens, such as inventory levels before surfing, how many others were buying the same item at the same time, and so on.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Mar 2013, 8:47 PM
#3
gandalfsmith avatar

gandalfsmith

New Zenner

Join Date:
Oct 2011
Location:
Toronto Canada
Posts:
69
Plugin Contributions:
0

Post #3 by gandalfsmith

DrByte:

Can you list the exact steps required to duplicate this experience?

(Yes, I'm also asking whether you've tried to recreate the problem and isolate any specific conditions under which it happens, such as inventory levels before surfing, how many others were buying the same item at the same time, and so on.)

Hi
I did try and recreate the problem, I put a product into my shopping cart (logged on), this product shows as 1 in stock both on the front end and in the backend admin side. I then followed all the checkout steps, EXCEPT I stopped at confirm order - (see attached image)

I then opened a new browser window and put in the exact product and it changed the quantity to 2
It then allowed me to checkout with 2 in the cart even though the warning came up about it being out of stock (see attached image)

I then went into the backend admin and the order was confirmed as ordering 2 items (see attached image)

I went to catalog, product and the product is now marked as -1

No one else was buying this item at the same time, no new orders were being placed and this product is marked as having 1 in stock. Also checked cache and no errors appear.

ThanksAttachment 12071Attachment 12072Attachment 12073

6 Mar 2013, 10:04 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

gandalfsmith:

I did try and recreate the problem, I put a product into my shopping cart (logged on), this product shows as 1 in stock both on the front end and in the backend admin side. I then followed all the checkout steps, EXCEPT I stopped at confirm order - (see attached image)

I then opened a new browser window and put in the exact product and it changed the quantity to 2
It then allowed me to checkout with 2 in the cart even though the warning came up about it being out of stock (see attached image)
Is that something your customers are likely to do? If so, why?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Mar 2013, 10:55 PM
#5
gandalfsmith avatar

gandalfsmith

New Zenner

Join Date:
Oct 2011
Location:
Toronto Canada
Posts:
69
Plugin Contributions:
0

Post #5 by gandalfsmith

DrByte:

Is that something your customers are likely to do? If so, why?

My guess is that customers make mistakes sometimes, so I did a test the only way I thought a customer could get it right. They most probably are likely to do this if this is how I managed to recreate the same problem. As for why they would do it, I have no clue.

I tried another way and it will not let me checkout if only one is in stock.
I went to a product, clicked on add to cart and then the cart page came up, on that page I clicked on continue shopping (which takes me back to the same product I just added)
I again clicked on add to cart and the cart page comes up - this time though it warns that there is not enough stock (because I now have 2) and if I click on checkout it just keeps coming up with the stock warning - so that WORKS.

It is obviously something to do with it being open in a new browser window while logged in - if the product is already in the cart and you open a page in a new browser window and add the exact same product to the cart in the new browser window it lets you check out with the same 2 items - could this have anything to do with sessions?