Quote:
Originally Posted by cflsystems
It will be in buy_now.tpl and is siimilar
|
Hello,
I am trying to hide the quantity-dropdown box in productslist.tpl, so I put in next code (removed the original part):
Code:
<script type="text/javascript">
<!--
var min_avail = 1;
var avail = 1;
var product_avail = 1;
-->
</script>
<input type="hidden" name="amount" value="1" />
This works fine exept when a product has a minimum order quantity for example lets say 10pcs then an error shows up, and the product will not be added to the cart.
When I change the value="1" into value="10" the cart wil be updated with 10pcs as long as the MOQ is set less than 10pcs in the productdetails.
But then all the products with MOQ <10pcs will be added to the cart with 10x
Is there a way to fix this problem? What exactly does :
Code:
<input type="hidden" name="amount" value="1" />