VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: PRO on November 04, 2011, 15:57:13 PM

Title: Minimum Order Quantity , and Quantity Box
Post by: PRO on November 04, 2011, 15:57:13 PM
if an item has a minimum order quantity of 5. The quantity box should start at 5.

Changing this
<input type="text" class="quantity-input" name="quantity[]" value="1" />

to this
<input type="text" class="quantity-input" name="quantity[]" value="<?php echo $this->product->min_order_level ?>" />

Will make it default to the minimum order. BUT. the user can still change the number down.

Title: Re: Minimum Order Quantity , and Quantity Box
Post by: Cleanshooter on November 04, 2011, 18:49:38 PM
We can put this in but your right I don't think that it solves the issue.
We might need to also change the options so that the minimum selectable option is the minimum...

Does this get checked when you go through checkout?
Title: Re: Minimum Order Quantity , and Quantity Box
Post by: PRO on November 04, 2011, 19:19:33 PM
If the minimum is 5, and they click add 3 to cart. The pop up alert comes up saying "Minimum is XXX ". Which is good.

IF, they add the minimum to the cart. THEN, go back to the product. They might want to add a couple more. They do not have a problem adding more to the cart. WHICH is good.


SO, changes might add more problems in case they want to add an additional 1 item, when they already have met the minimum.

Title: Re: Minimum Order Quantity , and Quantity Box
Post by: Cleanshooter on November 04, 2011, 20:37:02 PM
It has been added to the most recent SVN
;D
Title: Re: Minimum Order Quantity , and Quantity Box
Post by: PRO on November 04, 2011, 21:06:37 PM
thanks