Hi, can you share the following:
- Theme you are using
- Your store url
cool. I will provide solution tomorrow if nobody has done before
hi @Andrea00,
Please try the following:
First of all I recommend making a copy of your theme and testing code edits there instead of doing it on your live theme.
Open file Snippets/product-form.liquid and go around line 46. Search for this line:
<input class="product-form__quantity-input" type="number" id="Quantity-{{ section.id }}" name="quantity" value="1" min="1" pattern="[0-9]*">
and replace it with:
<input class="product-form__quantity-input" type="number" id="Quantity-{{ section.id }}" name="quantity" value="3" min="3" step="3" pattern="[0-9]*">
As you can see, we have changed the initial and minimum values for the quantity input and we have set the step size to 3.
If this is what you are looking for please tell me and I will provide code to modify the quantity selectors for the cart page and dropdown carts
hi @Andrea00 where you able to check my proposed solution?
The next one is for the cart page at https://tessere-winery.myshopify.com/cart
On Sections/cart-template.liquid, on line 189. Replace this:
<input id="quantity_{{ item.key }}" class="cart-item__qty-input" value="{{ item.quantity }}" type="number" pattern="\d*" min="1" name="updates[]" required data-cart-item-input-quantity>
with:
<input id="quantity_{{ item.key }}" class="cart-item__qty-input" value="{{ item.quantity }}" type="number" pattern="\d*" min="3" step="3" name="updates[]" required data-cart-item-input-quantity>
I will try to figure out the last one while you check this one out
ok, and the last one is for the cart drawer (cart that appears from the right when you just have added to cart)
On file Snippets/cart-drawer.liquid, on line 138, you have to change this:
<input id="quantity_{{ item.key }}" class="cart-drawer__item-quantity" value="{{ item.quantity }}" type="number" pattern="\d*" min="1" aria-label="{{ 'cart.general.item_quantity' | t }}" data-cart-item-input-quantity>
to this:
<input id="quantity_{{ item.key }}" class="cart-drawer__item-quantity" value="{{ item.quantity }}" type="number" pattern="\d*" min="3" step="3" aria-label="{{ 'cart.general.item_quantity' | t }}" data-cart-item-input-quantity>
User | Count |
---|---|
23 | |
20 | |
18 | |
16 | |
16 |