Skip to content

Add a widget and choose where it shows

How widgets belong to promotions or to your whole store, how to add one from the Widgets page, and how to pick the pages it shows on.

A widget shows your promotions to shoppers in your theme. Crownsale has 10 of them.

Two kinds of widget

  • A promotion's own widget. Most templates come with one, such as the progress banner for Tiered discount. You set it up on the promotion's Widget design step, and saving the promotion saves its widget. Deleting the promotion deletes it.
  • A store-wide widget. Cart savings summary, Automatic gifts, Sale price on product cards, and Discount code box serve all your promotions. You add them from Widgets.

You can also add any widget from Widgets yourself, for example a Promotion badge, and point it at one promotion or at Any promotion.

Add a widget from the Widgets page

  1. Open Widgets. Under Add a widget, each card says what the widget does and where it Shows on.
  2. Click Add widget (or Add another).
  3. Fill in Name (only you see it), Customer-facing heading, the Shopper-facing text, and Appearance and behavior. Leave a text field blank to keep its default in the shopper's language.
  4. On the right, choose where it appears (below), then click Save.

Choose where it shows

The card Where should the widget appear? has a Shown / Hidden switch and one checkbox per kind of page the widget supports:

  • Cart page and cart drawer
  • Collection pages
  • Product pages, then All product pages, Specific products, or Products in specific collections
  • Anywhere I add the app block (on the Widgets page only)

A widget shows on several kinds of page at once. Switching it to Hidden keeps its settings for later.

In a promotion's editor, this card sits on the right under the widget's name and starts folded, with a line such as "Shows on: Cart and cart drawer, All product pages". Click the arrow beside the switch to change the pages. It opens by itself if a choice needs fixing, such as specific products with none picked.

The app block decides where widgets can appear

Widgets render inside the Crownsale app block, Promotion widgets, in your theme. A widget set to the cart, as progress banners, gift choosers, and add-on offers are by default, shows only if the block is on your cart page template. The setup guide's Add the app block to your cart page step puts it there. The one exception is Sale price on product cards, which works through the app embed. See Turn on the app embed and add the app block.

Widgets set to the cart also show in your theme's slide-out cart, below the products, without any block to add. To turn that off, or to choose exactly where they go, open the Promotions app embed in your theme editor. See A widget isn't showing if your drawer needs a hand.

Manage your widgets

Your widgets lists every widget, On or Off, with search and a status filter. Click a widget to change it. A promotion's own widget opens on that promotion's Widget design step.

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.