Author Topic: Minimum Order Quantity , and Quantity Box  (Read 3456 times)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10400
  • VirtueMart Version: 3+
Minimum Order Quantity , and Quantity Box
« 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.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Cleanshooter

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 69
    • My Blog
Re: Minimum Order Quantity , and Quantity Box
« Reply #1 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?
- Cleanshooter

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10400
  • VirtueMart Version: 3+
Re: Minimum Order Quantity , and Quantity Box
« Reply #2 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.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Cleanshooter

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 69
    • My Blog
Re: Minimum Order Quantity , and Quantity Box
« Reply #3 on: November 04, 2011, 20:37:02 pm »
It has been added to the most recent SVN
 ;D
- Cleanshooter

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10400
  • VirtueMart Version: 3+
Re: Minimum Order Quantity , and Quantity Box
« Reply #4 on: November 04, 2011, 21:06:37 pm »
thanks
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)