Hi all,
I have set up the following to work for products that need to start with a quantity of 10. The MIN10 tags are all set up and I thought the following code should work but it doesn’t. The number 10 appears for a second and is then replaced with the 1. Note that the site is in development, but I don’t think it should make a difference?
Thanks in advance for your help.
Here’s the code:
{% if product.tags contains ‘MIN10’ %}
{{ ‘products.product.quantity.decrease’ | t: product: product.title | escape }}
{% render ‘icon-minus’ %}
<input class=“quantity__input”
type=“number”
name=“quantity”
id=“Quantity-{{ section.id }}”
min=“10”
value=“10”
form=“{{ product_form_id }}”
oninput=“changeMinQuantity(this, 10)”