Skip to content

Discount code box

Let shoppers apply and remove discount codes on the cart page, for any code in your store, including gift codes.

Let shoppers apply and remove discount codes on the cart page.

What shoppers see

A field with an Apply button. After a code is applied, it's listed with a Remove button. Messages confirm the code, say if it isn't valid for the cart, or ask the shopper to enter one first.

Which promotions use it

Any code in your store, from Crownsale, Shopify, or another app. It's the widget of Free gift with a code, and works with any code promotion. Your store has one box, shared by every promotion.

Where it can go

Cart page and cart drawer, or anywhere you add the app block.

Set it up

From a Free gift with a code promotion's Widget design step, click Turn on the discount code box. Or open Widgets and click Add widget on Discount code box.

You can change: Code field placeholder, Apply button, Remove button, Code applied message, Code not valid message, Connection problem message, and Empty code message.

Style

Pick one of five themes, Card, Minimal, Bold, Soft, or Pop, each shown as a small drawing of the box. Every widget offers the same five, so your widgets can match. Picking one sets every color it uses; then adjust any part. Match my theme’s colors and buttons (on by default) gives the text, background, field, and Apply button your theme’s colors and corners; anything you style yourself, or a theme you pick, stays as you set it.

Its parts are Widget box, Heading, Heading icon (a code icon before the heading; pick another icon or none), Code field, Apply button, Applied code, Remove code button (on each applied code), Status message, and Error message (the line saying a code didn't apply, red by default).

Animations

The box shakes when a code isn't accepted, and the message pops when one is. Shoppers who turn on "reduce motion" on their device see neither.

Good to know

  • Codes go onto the Shopify cart, so they carry through to checkout.
  • A code that Shopify holds but doesn't apply to the cart isn't listed, so an invalid code doesn't linger.
  • It needs the Crownsale app block on your cart page template.

Still stuck?

Chat with us or email support@crownsale.app. Tell us your store's address and what you expected to happen, and we'll look into it.