Skip to content

Limit discount codes at Shopify Plus checkout — how it works

The restrict-discount-codes checkout UI extension limits how many discount codes a customer can apply during checkout. It requires Shopify Plus — checkout UI extensions are not available on standard Shopify plans.

In the checkout editor, configure:

Setting Key Type Default
Maximum discount codes allowed max_discount_codes Integer 1

If you leave the setting empty, the extension defaults to 1 code.

When the number of applied discount codes is at or below your maximum, customers see an informational banner reminding them of the limit (for example: “Please be reminded that you can only use 1 discount code(s) at a time.”).

When the customer applies more codes than allowed:

  1. A critical banner appears with the error message.
  2. Checkout progress is blocked — the customer cannot complete the order until they remove extra codes.
  3. An error appears under the discount code field and a page-level error explains what to do.

This uses Shopify’s buyer journey intercept API with block_progress enabled on the extension.

The extension targets purchase.checkout.reductions.render-before — the area before discount and gift card reductions in checkout. You choose the exact placement in the checkout editor.

The extension ships with translations for many buyer locales (English, Chinese Traditional/Simplified, French, German, and others). Messages adapt to the customer’s checkout language with fallback to English.