← All notes

HBN Notes / Shopify guide

What should shoppers see when they order an invalid quantity on Shopify?

Write a Shopify quantity error that identifies the item and gives the shopper a valid quantity. Test the correction against stock, pack sizes, and checkout.

Published

A shopper adds ten blank notebooks and a pen to their cart. The notebooks are priced individually, but the warehouse ships them in cartons of eight. When checkout stops the order, the shopper needs to know which quantity to change and what number they can enter.

Give the shopper a quantity they can choose

Put the product name and the next action in the message. Keep the unit the same as the quantity selector. If both eight and sixteen notebooks are available, the shopper can choose whether to buy fewer or add another carton.

Example checkout message. “Blank Notebooks ship in cartons of 8. Change your cart quantity to 8 or 16 notebooks.”

If only thirteen notebooks are available or the order has a cap of twelve, eight is the only complete carton the shopper can buy. A fixed message will get out of date if it lists quantities that depend on current stock. Use the pack size in fixed copy and show specific choices where you can verify that they satisfy both stock and order limits.

Show the pack size where shoppers choose a quantity

Put “Ships in cartons of 8” near the selector and give shoppers the same instruction wherever they can edit the quantity. On Shopify B2B catalogs, native quantity increments apply to individual variants. If each color ships in its own carton, the instruction should say “8 per color.”

In HBN Quantity Limits, we show the configured rule in a storefront app block and use Shopify’s cart and checkout validation to enforce a required multiple at checkout. The app’s generated error identifies the affected product and states the multiple. The sample above illustrates wording for a store that can verify the suggested quantities.

Test whether the shopper can recover

  1. Add ten notebooks and a pen in a test cart. Check that the message names the notebooks.
  2. Change the notebooks to eight and leave the pen in the cart. Verify that the quantity error clears.
  3. Try sixteen and confirm that the result matches the available stock and any maximum. Repeat using accelerated checkout if the store offers it.

If shoppers are still unsure whether to enter units or cartons, use the guide to selling in multiples and case packs to decide what the quantity field should represent.