VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: evolution on January 06, 2013, 22:13:54 PM

Title: Stock Issues - Adding more than available stock to cart
Post by: evolution on January 06, 2013, 22:13:54 PM
Hi

I figured I finally had stockable plugin all sorted and then the client pointed out a couple of issues. After two days of searching, trying things and pulling my hair out I've resorted to asking for help :)

Site: http://limeducks.com.au
VM Vers 2.0.16
Joomla 2.5.8
Gavick esport template (lastest update)

Example product: http://limeducks.com.au/online-shopping/girls-dresses/bobbi-detail

OK, I have products set up like this

Product (parent) -> Size (Stockable plugin child with number of items)

If there are 2 items left in stock and the shopper tries to enter more than 2 by updating the quantity number, then they are stopped from doing this.
However, if someone leaves the quantity at 1 and then hits 'add to cart' 5 times, it will add five items to the cart and through to checkout.

I doubt many people actually shop this way, but the client picked it up.

Any ideas of how to get around this?

Cheers and Happy New Year
Title: Re: Stock Issues - Adding more than available stock to cart
Post by: Thomas Ahrnberg on January 09, 2013, 16:22:39 PM
We are having the some problem, hope we can get a solution soon.

The problem will also be there if there more people buying the same product, before one of them checkout,