Browse articles

Discount code field (Discount Box)

Let customers enter discount codes right in the cart, as a visible field or a discrete link, with your own texts and colors.

Last updated

The Discount Box adds a discount code field to your cart, so customers can apply a code before they reach checkout and see the new total right away. It can be always visible or a small "Add discount code" link that opens the field on click.

Discount code field with the code YOUR-DISCOUNT and a green Apply button above the cart summary, which shows a discount of -400 SEK

Turn on the discount field

  1. Open Discount Box

    Go to Cart designerDiscount Box.

  2. Switch it on

    Switch on the toggle in the Status card.

  3. Choose a display mode

    Pick Visible input or Discrete text (see below).

  4. Save

    Click Save in the save bar.

Discount Box section with Status switched on, Display mode set to Discrete text, the Color settings card and the Texts card with Apply button text, Discrete button text, Placeholder text, Error message and Already applied message.

Display mode

  • Visible input: the code field and Apply button are always shown in the cart.
  • Discrete text: a small link, "Add discount code" by default, opens the field on click. It takes less space.

Use Visible input when you actively promote codes, for example during a sale or with influencer codes. Use Discrete text when most customers don't have a code.

Cart footer in the preview with the small Add discount code link above the subtotal.
Discrete text: a small link opens the code field.

Colors

In the Color settings card:

  • Apply button color: leave it empty to use your checkout button color.
  • Input border color: leave it empty to use your primary text color.

Texts

FieldDefaultShown
Apply button textApplyOn the button
Discrete button textAdd discount codeAs the link, only with Discrete text
Placeholder textDiscount codeInside the empty field
Error messageInvalid or expired discount codeWhen Shopify rejects the code
Already applied messageThis discount code is already appliedWhen the code is already active on the cart

Click the translate icon next to a field to add the text in your other languages.

How codes are checked

Shopify checks every code and calculates the discount. EliteCart only passes the code to Shopify and shows the result. A code that Shopify accepts but hasn't activated yet, for example because the cart hasn't reached the code's minimum order value, stays on the cart and applies once the condition is met.

Apply codes automatically

The card Advanced: Auto-Apply Discount Codes links to a separate feature: EliteCart can apply a discount code automatically when a customer adds a specific product to the cart. It works independently of the Discount Box. See Auto-apply a discount code on add to cart.

Still stuck?

Chat with us and we'll help you get your cart live. Or email contact@elitecart.app.