Crownsale adds itself to your theme through Shopify's theme app extensions: an app embed and an app block. It never edits your theme's code, so theme updates don't break it.
What your theme needs
- For widgets: a theme that supports app blocks, which Online Store 2.0 themes do. You place the Promotion widgets block on the product page, cart page, or any other template.
- For gifts and sale prices on product cards: the Promotions app embed. App embeds work in every theme, including vintage themes.
Promotions apply at checkout whatever your theme, since they run as Shopify discounts.
How Crownsale works with your theme
- Cart changes: Crownsale notices when the cart changes, whether through the cart page, a cart drawer, or quick add buttons, and updates widgets and gifts.
- Cart drawers: widgets set to show on the cart also show in your theme's slide-out cart, below the products, with nothing to set up. Crownsale recognizes Dawn and Horizon and the themes built on them, as well as Impulse, Motion, Prestige, Focal, Warehouse and most other drawers. It puts the widgets back each time your theme redraws the drawer. You can turn this off, or choose where the widgets go, in the Promotions app embed. If your theme lets you add app blocks inside its drawer and you add Promotion widgets there, Crownsale uses your block instead.
- Cart drawer refresh: after it adds or removes a gift, Crownsale refreshes the cart so the drawer shows it. If your drawer doesn't update, enter your theme's refresh function in the Automatic gifts widget's Cart refresh function.
- Re-rendered sections: when your theme redraws a section, such as a drawer or a product section after a variant change, Crownsale redraws its widgets in it.
- Prices on product pages: Sale price on product pages can hide your theme's price while it shows a crossed-out one, if it finds that price in the same section as the app block.
- Product cards: Sale price on product cards reads your theme's product grid on collection pages and search results.
If something looks wrong
- A widget doesn't show: check that the app block is on that page template. See A widget isn't showing.
- Two prices show: turn on Hide the theme price while a crossed-out price is shown, and keep the app block in the main product section.
- Fonts or colors clash: widgets use your theme's fonts and colors by default. Adjust them in each widget's Style, or with Custom code.
Write to support@crownsale.app with your theme's name if a widget still doesn't fit.