Add fixed Shopify quantity selector with 100 Pcs, 200pcs, 300pcs and more

Adding a fixed Shopify quantity selector to your Shopify store is easy. And doesn’t require an expensive app. Just copy and paste a bit of code and you’re all set! Edit the code for a theme if you know HTML and CSS, and have a basic understanding of Liquid.

Demo Image:

Add fixed Shopify quantity selector with 100 Pcs, 200pcs, 300pcs and more

Edit your theme code to add a fixed quantity selector. To add a fixed quantity selector to your product pages by editing your theme code:

  • From your Shopify admin, go to Online Store > Themes.
  • Find the theme you want to edit, and then click Actions > Edit code.
  • In the Templates directory, click product.liquid.
  • Find the opening <form> tag in the code. Between the opening <form> tag and the closing </form> tag, paste the following code:
{% assign quantityOptions = '100,200,300,400,500,600,700,800,900,1000' | split:',' %}

<label for="quantity">Qty: </label>
<select id="quantity" name="quantity">
{% for q in quantityOptions %} <option value="{{ q }}">{{ q }}</option>
{% endfor %}
</select>

 

And that’s it!

If you have any trouble, feel free to leave a comment below and I’ll do my best to help.

Need Shopify Expert Help?

If you need any Shopify expert help, you can try on Shopi Tasker . Shopi Tasker is a certified Shopify expert agency. They have been focused on delivering small & big tasks to Shopify users and have helped over 100+ Shopify store owners get stuff done.

3 comments

  • Hi, how about for only 1 specific product

    Carl C Hoppmann
  • I tried to paste it in my shopify store but the code is not working. May I have another recommendation? to apply the bulk quantity for my store?

    Marfe Secretaria
  • Great blog post. Thanks. It seems like your solution only works for dropdowns though and we want to have an input box. What would that code look like for a qty input box?

    Mario

Leave a comment

Please note, comments must be approved before they are published