Author Topic: Problem with purchase quantity steps  (Read 206 times)

naoko15

  • Jr. Member
  • **
  • Posts: 196
Problem with purchase quantity steps
« 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.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3518
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Problem with purchase quantity steps
« Reply #1 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.