Shopify’s built-in percentage discounts have no maximum dollar cap: a 20% code takes $80 off a $400 cart and $400 off a $2,000 cart. To offer “20% off, up to $50 max”, use OneCode: Stackable Discounts and set Maximum total discount under More settings on a Product Discount or Order Discount.
Example: the code CAP50 gives 20% off All Products with a Maximum total discount of 50:
- On a $150 cart, 20% is $30. That is under the $50 cap, so the customer gets the full $30 off and pays $120.
- On a $400 cart (a $240 Wool overcoat and $160 Leather boots), 20% would be $80, so OneCode caps the total saving at $50.00. The cap splits proportionally across the items: $30 off the overcoat ($210) and $20 off the boots ($140). Subtotal is $350, Economy shipping is $8, and the total is USD $358.00.

Set it up
- In OneCode, click Create discount, keep Discount code, and enter
CAP50(or choose Automatic discount and enter a Title). - Click Add Discount Type and choose Product Discount (or Order Discount).
- Keep Value Type on Percentage and enter
20in Percentage. - Click More settings, tick Maximum total discount, and enter
50. - Click Save discount.

Product discount cap vs order discount cap
Both Product Discount and Order Discount support Maximum total discount when Value Type is Percentage:
- On a Product Discount: you can also combine the cap with collection targeting, Exclude collections, Sale items rules, or Quantity limit. When the cap kicks in across multiple items, OneCode splits the $50 proportionally by each item’s discounted value so every qualifying line item shows its share at checkout.
- On an Order Discount: the cap applies to the single order discount line after any product discounts have come off. This works well for VIP or creator codes that stack during a sale without giving away unlimited margin on large orders.
Stack free shipping or collection exclusions on the same code
Because OneCode holds multiple discount types in one code, you can cap the percentage discount and still offer free shipping or leave out Clearance on CAP50:
- To skip Clearance, tick Exclude collections under More settings on the same product discount and pick Clearance. See leave one collection out of a Shopify discount.
- To add free shipping on orders over $100, click Add Discount Type, choose Shipping Discount (Free Shipping), and add a Per-Discount Condition for Cart Subtotal greater than or equal to
100.
Things to check before you launch
- Percentage discounts only. Maximum total discount appears when Value Type is Percentage. A Fixed Amount Off order discount already has a fixed dollar value.
- Store currency. The cap is entered in your store’s currency and Shopify converts it at checkout for international markets. See multi-currency discounts.
- Per discount type. If you add two separate product discounts to the same code (for example 20% off Jackets and 15% off Boots), each one has its own Maximum total discount setting.
OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the Shopify App Store.