VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: naoko15 on September 11, 2018, 11:46:19 am

Title: Problem with purchase quantity steps
Post by: naoko15 on September 11, 2018, 11:46:19 am
Hi, there are some products in my store that can only be purchased in boxes of 12 or 24 units. My problem is that if the stock is not a multiple of these quantities, the customer can end up purchasing the wrong number of products.

Example:
Product: 1 case of 24 beers.
Minimum Purchase Quantity 24
Purchase Quantity Steps 24
Stock 25

The customer can add 48 bottles to the shopping cart but at checkout it will be displayed 25. They should not be allowed to purchase a wrong quantity, even if stock is incorrect.

In VM 2 this worked correctly.

Is there any way to fix this?

VirtueMart 3.2.14
Joomla! 3.8.12 Stable

Thanks.
Title: Re: Problem with purchase quantity steps
Post by: Studio 42 on September 11, 2018, 18:34:02 pm
You can modify the javascript, it never worked perfectly.
But this need to overide many codes in the template to not call the current step javascript.