Hi,
We have hided the "quantity" selection box from "flexv2" product details page, it is because there wasn't enough space there.
You can do this little modification in the PHP file to apply the "minimum purchase quantity" to that product.
Open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/flexv2.php
Find this Line:
<input type="hidden" class="quantity-input js-recalculate" name="quantity[]" value="1">
Replace it with this:
<input type="hidden" class="quantity-input js-recalculate" name="quantity[]" value="<?php if (isset($this->product->min_order_level) && (int)$this->product->min_order_level > 0) {
echo $this->product->min_order_level;
} else {
echo '1';
} ?>">
Then the "default" quantity will be set to "minimum required quantity" which will be 50 in your case. But still the quantity box will be hidden though.
If you want to show it as well, replace the 1st line with this instead:
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" value="<?php if (isset($this->product->min_order_level) && (int)$this->product->min_order_level > 0) {
echo $this->product->min_order_level;
} else {
echo '1';
} ?>"/>
</span>
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus"/>
<input type="button" class="quantity-controls quantity-minus"/>
</span>
But the layout won't look good, because there is no enough space to put the quantity selection box and the plus,minus buttons. So, it would require some CSS touches to make it looks more natural and nicely fit.
Regards.
Forum Support.