All things Shopify and commerce
hey hows it going, i was wondering if maybe y'all could help me with this problem
im trying to set my minimum on my quantity selector to 250, but i cant seem to get the code right
this is what i have
<quantity-counter class="quantity-selector"> <label for="product-quantity-buttons-{{ unique }}" class="label-hidden">{{ 'products.product.quantity' | t }}</label> <button class="quantity__minus" type="button" name="decrease" title="{{ 'cart.general.decrease_quantity_label' | t }} - {{ product.title | strip_html }}"> {%- render 'icon-minus' -%} </button> <input id="product-quantity-buttons-{{ unique }}" class="quantity__input" type="number" name="quantity" value="1" min="1" aria-label="quantity" autocomplete="off" title="{{ 'cart.general.quantity_field_label' | t }} - {{ product.title | strip_html }}" pattern="[0-9]*" data-popout-input> <button class="quantity__plus" type="button" name="increase" title="{{ 'cart.general.increase_quantity_label' | t }} - {{ product.title | strip_html }}"> {%- render 'icon-plus' -%} </button> </quantity-counter> </popout-select> {%- else -%} <input type="hidden" name="quantity" value="1"> {%- endif -%} {%- endcapture -%}
hopefully yall could help.
thanks so much in advance
best
Jayce
Set the input value to 250 and min 250.
Now, disable the cursor pointer for input field, using css.
input.quantity__input{
pointer-events: none;
}
i did change the the value and min. both to 250
however the css part i think didn't work and so
i doesnt seem its working
Try this one-
.quantity-selector input.quantity__input{
pointer-events: none !important;
}
Make sure you properly put this code in the CSS file that used in product page.
Like Dawn theme have a common CSS file, called- `base.css`
-----------------------------
If the issue still persists, please share your store url and I'll try to solve the issue.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024