VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: bowie on February 14, 2013, 17:15:07 PM

Title: How is "add to cart" influence on stock-level
Post by: bowie on February 14, 2013, 17:15:07 PM
Greetings,

Can someone help me please with this VM 2.0.18a question.
When users are shopping and adding a product to the cart - will that then reserve/lock 1 stock item? So that we can always be sure that we are not "overselling" a product?

Would appreciate any help here

Thx in advance
Title: Re: How is "add to cart" influence on stock-level
Post by: jjk on February 14, 2013, 20:56:01 PM
You can control that if you go to Configuration -> configuration -> shopfront -> action when product is out of stock
Title: Re: How is "add to cart" influence on stock-level
Post by: bowie on February 15, 2013, 09:03:33 AM
Thx for the answer, but what I meant was is; when adding to the cart - is virtuemart then reserving that amount of stock. So if the stock level is 5, and 5 online users add 1 material each (NO CHECKOUT) is that then "reserving" 5 stock items so that the total stock amount equals 0 on the actual material, BEFORE checkout. So a six users looking at that same material at the same time would see it as 0 in stock level?

My issue is that I want to avoid that my product is "overselled"
Title: Re: How is "add to cart" influence on stock-level
Post by: GJC Web Design on February 15, 2013, 09:45:20 AM
Just test this yourself on a couple of browsers.. assuming you have a site set up...
Title: Re: How is "add to cart" influence on stock-level
Post by: jjk on February 15, 2013, 11:24:47 AM
The stock level is being reduced when the order is confirmed. Some people may add a product into the cart but never finish checkout. So reducing stock level at this time doesn't make sense. You can use i.e. the option "Displays 'Notify Me' instead of 'Add To Cart' button" (where you eventually replace the 'Notify Me' with 'Sold Out' in the language file). In your example above the first 5 users who actually buy the product would get it and the sixth one would see 'Notify Me' instead of the 'Add to Cart' button. Also you can limit the maximum number of products customers are able to add to the cart.  So there is no danger of overselling.
Title: Re: How is "add to cart" influence on stock-level
Post by: thenut on January 13, 2014, 09:09:59 AM
Hi all,
First of all I totally agree with bowie. Products added to cart should be also reserved/blocked for other users. Simple example:
I have shop with only unique stuff. One of them is product which is only one in the world. Let's call it "VIP's tumb". User X want to buy it. He is adding VIP's thumb to the cart and he want to continue shopping.
Now appear user Y came to buy VIP's thumb and he finished the shopping.
And what now? Both of them want the same product, both of them did everything rights. But only one can buy it. If products which are in cart had status 'reserved/blocked' user Y couldn't add to cart the same one.
I know this is a very unique situation, but possible.

I found a solution for this and I can help if somebody want.

PS.
Sorry for late answer ;)
Title: Re: How is "add to cart" influence on stock-level
Post by: jenkinhill on January 13, 2014, 09:40:21 AM
Product Lock Plugin   http://forum.virtuemart.net/index.php?topic=119859