Set a limit to the maximum quantity of items per cart
When a customer tries to add more items to their cart than you have in stock, the cart automatically reduces the quantity to match your available inventory. This helps prevent overselling, but it can also unintentionally disclose how much stock you have to your customers.
To protect your inventory information, you can set a limit on how many of each product a customer can add to their cart in one order.
The maximum quantity applies to each product's variants independently, not to the product or cart as a whole. For example, if you sell a t-shirt in multiple colors (red, blue, and green) and set a maximum limit of 30, then customers can order up to 30 t-shirts in each color variant. This means that they could potentially buy 30 red, 30 blue, and 30 green t-shirts in one order, as each color is treated separately.
On this page
Recommended quantity limits for your store
A recommended limit for your store displays in the Add-to-cart limit setting with a suggested maximum quantity limit based on your sales history:
- More than 250 sales: If you've made over 250 sales, then the recommended limit for your store is calculated based on your store's order data. This limit includes a surplus to account for orders with higher-than-average quantities.
- Fewer than 250 sales: If you've made less than 250 sales, then the default recommended limit for your store is set to 50.
The recommended limit is periodically updated as more data becomes available in your store.
You can choose to set a limit that's higher or lower than the recommended amount. However, setting a limit that's too low can negatively impact your sales.
Exceptions to the add-to-cart limit
The add-to-cart limit applies to all products, all customers, and all carts, except in the following scenarios:
- when the cart is created in the Shopify POS.
- when the cart is created as a draft order.
- when the cart contains products in B2B catalogs that have specific quantity rules.
- when the customer is logged in with a B2B customer profile.
Set an add-to-cart limit
The maximum quantity per item setting is active by default. You can deactivate or reactivate the maximum limit and modify the maximum value at any time.
Steps:
Desktop
From your Shopify admin, go to Settings > Checkout.
In the Advanced preferences section, click Add-to-cart limit.
In the Add-to-cart limit dialog, configure your add-to-cart limit settings:
- Activate the Set a maximum quantity per item that can be added to a cart option.
- In the Limit field, enter the maximum quantity per item. This must be a whole number. The recommended limit displays beneath the Limit field.
- Click Done.
Click Save.
iPhone
- From the Shopify app, tap the … button, and then tap Settings.
- In the Store settings section, tap Checkout.
- In the Advanced preferences section, tap Add-to-cart limit.
- In the Add-to-cart limit dialog, configure your add-to-cart limit settings:
- Activate the Set a maximum quantity per item that can be added to a cart option.
- In the Limit field, enter the maximum quantity per item. This must be a whole number. The recommended limit displays beneath the Limit field.
- Tap Done.
- Tap Save.
Android
- From the Shopify app, tap the ☰ button, and then tap Settings.
- In the Store settings section, tap Checkout.
- In the Advanced preferences section, tap Add-to-cart limit.
- In the Add-to-cart limit dialog, configure your add-to-cart limit settings:
- Activate the Set a maximum quantity per item that can be added to a cart option.
- In the Limit field, enter the maximum quantity per item. This must be a whole number. The recommended limit displays beneath the Limit field.
- Tap Done.
- Tap Save.