vmError: Max quantity of product Test reached, new quantity in cart set to 1

Started by kmedri, April 12, 2018, 12:04:22 PM

Previous topic - Next topic

kmedri

Hi, I have website joomla! 3.8.6 and after updating to latest VM 3.2.14 from VM 3.2.12 I now get the error when trying to buy 1 item when only 1 item in stock:

vmError: Max quantity of product Test reached, new quantity in cart set to 1

If I increase the stock level to 2 and add one item to the cart it works like normal. However if only one in stock the error occurs.

I have checked stock min and max levels and they all seem to be 0 or not set

Thank you for any suggestions

kmedri


hazael

My fix in components/com_virtuemart/helpers/cart.php in line 1769:

Just change

if ($quantity >= $productsleft ){

to

if ($quantity > $productsleft ){

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum