Inventory Quantity Lock

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Inventory Quantity Lock

Post by batmike » Wed Apr 06, 2011 9:48 am

I'm curious ... in the flow of product page to add to cart to checkout, when does an inventoried item become locked out and only available to that specific user.

I'm wondering because we just did a promo on some half-price gift cards and sold out in a few minutes and I'm checking on this after the fact, but anyway.

So, if there were 10 inventory quantity of some item available and I put one in my basket but then took forever in the basket or checkout process, could 10 other people checkout first and then it wouldn't let me purchase the product? Or once I'm on the actual checkout page, is it for sure mine, but if I leave for some reason or get an error, then does it become available for someone else?

Sorry if this is confusing, but I'm hoping someone at Able or whomever wants to read through the code might have an idea on this. Let me know if I need to provide clearer examples :)

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Inventory Quantity Lock

Post by AbleMods » Mon Apr 11, 2011 8:08 am

batmike wrote:So, if there were 10 inventory quantity of some item available and I put one in my basket but then took forever in the basket or checkout process, could 10 other people checkout first and then it wouldn't let me purchase the product?
The answer is yes and no. Inventory is not affected until checkout is complete and successful. So yes, 100 people could have the item in their basket when only 10 were in stock.

But AC7 checks the basket for inventory levels when OPC is first hit and when the final checkout button is hit. If an existing basket item is no longer available due to inventory and backorder is false, the shopper is supposed to be redirected to the basket page and the no-longer-available item is removed from the basket. A red message is displayed at the top of the basket page indicating the item was removed.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply