#1. All Products
You can use this code to Website Tools > Code Injection > Footer
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('div.product-quantity-input input').attr('min','5'); $('div.product-quantity-input input').attr('value','5'); }); </script>
Result
#2. Specific Product
You can edit Additional Info
Add a Code Block
Paste the code
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('div.product-quantity-input input').attr('min','5'); $('div.product-quantity-input input').attr('value','5'); }); </script>
#3. Products belong Specific Tag/Category
First, you need to assign a tag: five quantity for these products
Next, use this code to Code Injection > Footer
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('.tag-five-quantity div.product-quantity-input input').attr('min','5'); $('.tag-five-quantity div.product-quantity-input input').attr('value','5'); }); </script>