Z O B A E R

Loading

Guide Shopify guide

Remove the Quantity Selector in Shopify (Dawn + Horizon)

Remove the quantity box from your Shopify product page, cart and cart drawer, or from one product only. Dawn and Horizon steps plus tested CSS.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Remove quantity selector Shopify guide for Dawn and Horizon product page and cart, by Zobaer H.

The quantity selector is the small box with a minus button, a number and a plus button next to Add to cart. For many products it adds nothing. Think of one-of-a-kind art, made-to-order pieces, bookings, samples or digital downloads. If you searched for “remove quantity selector Shopify”, you want that box gone without breaking anything.

The good news: in Dawn and Horizon, Shopify’s free themes, you can take it off the product page in the theme editor in about two minutes. No code needed. The cart page and cart drawer have no setting, so I give you a few lines of CSS that I tested on desktop and phone. I have done this on many client stores, and these are the exact steps I use.

Here is what you will learn:

  • What happens when a product page has no quantity box
  • How to remove it from the product page in Dawn and Horizon
  • How to hide the quantity selector for only one product
  • How to hide the quantity selector in the cart and cart drawer with tested CSS
  • What to do for customers who need more than one, and how to fix common problems

What happens when you remove the quantity selector

Nothing breaks. When the box is gone, Add to cart simply adds one item. Both themes are built for this. Dawn’s add to cart code falls back to 1 when there is no quantity field. Horizon falls back to the product’s minimum quantity, which is 1 for normal stores.

Customers can still buy more than one. If they tap Add to cart twice, the cart shows 2. They can also change the number in the cart, unless you hide the quantity selector in the cart too. I cover both cases below.

One warning before you start. If you sell to B2B buyers with quantity rules, such as “minimum 10”, keep the selector on those products. In Dawn, the box is what sends the minimum. Without it, Dawn adds one item, and the rule blocks it.

Remove the quantity selector from the product page

This is the main fix, and it is the same idea in both themes. The quantity box is a block inside the Product information section. You remove it or hide it, and save.

In the Dawn theme: remove the Quantity selector block

  1. In your Shopify admin, go to Online Store, then Themes, and click Edit theme.
  2. Click the drop-down at the top that says Home page, choose Products, then Default product.
  3. In the left sidebar, open the Product information section.
  4. Click the Quantity selector block.
  5. At the bottom of the block settings, click Remove block. Or hover over the block in the sidebar and click the eye icon to hide the quantity selector instead.
  6. Click Save.

Hiding is my usual choice. The block stays in the list, so you can bring it back with one click later. Removing it deletes the block from the template file, templates/product.json, but you can add it again with Add block at any time.

Remove quantity selector Shopify product page: Dawn Quantity selector block and Horizon Quantity block in the theme editor
Dawn: remove or hide the Quantity selector block. Horizon: hide the Quantity block inside Buy buttons.

In the Horizon theme: hide the Quantity block inside Buy buttons

Horizon has no “Show quantity selector” checkbox. To hide the quantity selector, you hide its own small block. That block lives inside Buy buttons, next to Add to cart and Accelerated checkout.

  1. Open the theme editor and choose the Default product template, as above.
  2. In the Product information section, open Details, then open Buy buttons.
  3. Hover over the Quantity block and click the eye icon to hide it.
  4. Click Save.

You will notice there is no Remove block button here. In Horizon, Quantity is a static block. Shopify lets you hide static blocks and change their settings, but not delete or move them. Hiding is enough, because a hidden block is not shown on your store at all.

Using a paid theme? Open your Buy buttons block first. Some paid themes have a checkbox there, often named something like Show quantity selector. If you find one, untick it and you are done.

Hide the quantity selector for only one product

Often you want to hide the quantity selector on a few products only, like a custom portrait, while your other products keep it. The clean way is a separate product template. Shopify’s help page on creating and applying templates explains the basics.

Step 1: create a new product template

  1. In the theme editor, click the drop-down at the top, choose Products, then click Create template.
  2. Give it a clear Name, such as no-quantity.
  3. Under Based on, choose Default product, then click Create template.
  4. In the new template, hide or remove the quantity block, exactly as in the steps above. Click Save.

Step 2: give the template to your product

  1. In your Shopify admin, go to Products and open the product.
  2. Find the Theme template box and choose no-quantity from the drop-down.
  3. Click Save.

Have many products to change? You can switch the template for several products at once with the bulk editor. Because the new template is a copy of your default one, the page looks the same. Only the quantity box is gone.

Hide the quantity selector for one product: create a no-quantity template and choose it under Theme template
One product without the quantity box: copy the default template, hide the block, then pick the template on the product.

Keep in mind that a new template starts as a copy. If you later change the default template, such as adding a new block, make the same change in no-quantity too.

Hide the quantity selector in the cart and cart drawer

This is where people get stuck, and for a good reason. I checked the code of both themes. Neither Dawn nor Horizon has a setting to hide the quantity selector in the cart page or the cart drawer. So to hide the quantity selector in the cart, we use a few lines of CSS.

Shopify has a built-in place for this. In the theme editor, click the gear icon for Theme settings, open Custom CSS, and paste the code for your theme. CSS added there works on every page, including the cart drawer. It can hold up to 1,500 characters, and these snippets are far below that.

Dawn: CSS for the cart page and cart drawer

/* Dawn: hide quantity in the cart page and cart drawer */
quantity-input.cart-quantity {
  display: none;
}
.cart-items__heading--quantity {
  visibility: hidden;
}

The first rule hides the quantity box in cart lines only. Dawn’s product page box does not have the cart-quantity class, so it is not touched. The second rule hides the “Quantity” column heading on the desktop cart page, but keeps its space so the table stays lined up.

Horizon: CSS for the cart page and cart drawer

/* Horizon: hide quantity in the cart page and cart drawer */
.cart-items__quantity .quantity-selector-wrapper {
  display: none;
}

Horizon builds the cart page and the cart drawer from the same code, so one rule covers both. The rule only targets the quantity box inside cart lines. The product page and quick add stay as they are.

How I tested this CSS

I loaded the real cart styles from the current Dawn and Horizon code into a test page with a cart line, a cart drawer line and a product page quantity box. Then I checked it at a desktop width and a phone width. In both themes the cart quantity box was hidden, the product page box stayed, and the remove (trash) button stayed visible. Nothing overflowed sideways on the phone.

That remove button matters. With the quantity box hidden, it is the only way a customer can take an item out of the cart, so never hide it.

Quantity selector in the cart drawer on a phone, before and after the hide quantity CSS
Before and after on a phone: the quantity box is gone from the cart drawer, the remove button stays.

What about customers who want more than one?

This is the question I always ask a client before I remove anything. The box only makes it easy to pick a number. Without it, people can still buy two.

  • Product page box hidden, cart box shown: customers add one, then change the number in the cart. This is the setup I recommend for most stores.
  • Both hidden: customers can only add more by tapping Add to cart again. That is fine for one-of-a-kind items, but annoying for anything people buy in pairs.

When you hide the quantity selector, you don’t set a real limit. If you need to limit quantity per order, for example “one per customer” in a drop, you need a rule that Shopify checks at checkout. There are two ways:

  • B2B quantity rules: Shopify has built-in minimum, maximum and increment rules on the Basic, Grow, Advanced and Plus plans. But they only apply to B2B catalogs, not to normal shoppers.
  • An order limit app: for normal shoppers, use an app from the Shopify App Store that adds checkout validation. Public apps like this work on any plan. Only custom-built apps of this type need Shopify Plus.

Also, for sold-out control, track inventory. If you have one painting, set its inventory to 1 and turn off selling when out of stock. Then Shopify won’t sell a second one, with or without a quantity box.

Which way should you use?

Pick the row that matches your store. Most remove quantity selector Shopify requests I get from clients only need the first row.

What you wantDawnHorizonCode?
No quantity box on any product pageRemove or hide the Quantity selector blockHide the Quantity block in Buy buttonsNo
No quantity box on some productsSeparate product templateSeparate product templateNo
No quantity box on the home page productFeatured product section: remove the blockFeatured product section: hide QuantityNo
No quantity box in the cart and drawerCustom CSS (2 rules)Custom CSS (1 rule)Yes, CSS
A real maximum per orderOrder limit appOrder limit appNo, app
Where the quantity selector shows in Shopify and how to fix it: product page, featured product, quick add, cart page, drawer
The quantity box can show in five places. Each one has its own fix.

Common problems and fixes

The quantity selector still shows on some products

Those products use a different product template. In the theme editor, open the template drop-down under Products and check every template. Hide the quantity block in each one, or switch those products to the template you already fixed.

It still shows on the home page

The Featured product section on your home page has its own blocks. It does not follow your product template. Click that section and remove the Quantity selector block in Dawn, or hide Quantity inside its Buy buttons in Horizon.

It still shows in quick add

In both themes, the quick add pop-up loads the product’s own page, so it follows the template once you save. In Dawn, also check the Quick add setting on your collection and featured collection sections. If it is set to Bulk, every product card gets its own quantity box. Choose Standard instead.

It still shows on mobile

The theme blocks above work the same on every screen. So if the box only shows on phones, something else adds it. Common causes are a sticky add to cart bar from an app, or old custom CSS inside a desktop-only media query. Check the phone preview in the theme editor, then look at your apps. Also refresh the page, because your phone may show a cached copy.

The quantity selector in the cart is still there

Make sure you pasted the code for your theme, in Theme settings, not in a section’s own Custom CSS. Section CSS only affects that one section. If you add it to the cart page section, it never reaches the cart drawer. If you use a paid theme, the class names are different, and you need a selector written for that theme.

Frequently asked questions

How do I remove the quantity selector in Shopify?

To hide the quantity selector, open the Default product template in the theme editor. In Dawn, remove or hide the Quantity selector block in Product information. In Horizon, hide the Quantity block inside Buy buttons. Then save.

How do I remove the quantity selector in the cart on Shopify?

Dawn and Horizon have no setting for this. Paste the CSS from this guide into Theme settings, then Custom CSS. It hides the quantity box in the cart page and the cart drawer but keeps the remove button.

Can I hide the quantity selector for only one product?

Yes. Create a new product template based on Default product, hide the quantity block in it, and choose that template under Theme template on the product.

Can customers still buy more than one without a quantity selector?

Yes. Each tap on Add to cart adds one more, and they can change the number in the cart unless you hide it there too.

How do I limit quantity per order in Shopify?

Hiding the box does not set a limit. To limit quantity per order, use an order limit app that checks the cart at checkout. Shopify’s own quantity rules only apply to B2B catalogs.

How do I add the quantity selector back?

If you hid the block, click the eye icon again. If you used CSS to hide the quantity selector in the cart, delete those lines. If you removed it in Dawn, click Add block in Product information, choose Quantity selector, drag it above Buy buttons and save.

A clean buy box is one of many small fixes that make a product page easier to use. For more step-by-step guides, see my Shopify tips, such as how to add trust badges. If you would rather have it done for you, I make changes like this as part of my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything