ExiusCart Developers

ExiusCart in a Shopify theme

For theme developers and agencies working on a store that uses the ExiusCart Shopify app. Everything runs from a theme app extension: no theme code is edited, no files are added to the theme, and everything is removed with the app.

Building your own storefront instead? See the API reference.

Works with
Online Store 2.0
App blocks
6
Events
16
Theme files edited
None
On this page
  1. 1. Switch it on
  2. 2. App blocks and settings
  3. 3. Metafields
  4. 4. JavaScript events
  5. 5. JavaScript API
  6. 6. CSS hooks
  7. 7. Discount codes and stacking
  8. 8. Test mode
  9. 9. Speed
  10. 10. Uninstall and your data
1

Switch it on

  1. Install ExiusCart from the Shopify App Store and connect the store (ExiusCart › Channels › Shopify).
  2. Shopify admin › Online Store › Themes › Customize › App embeds: turn on ExiusCart. This one switch loads upsells, popups, sign-up forms and card stars.
  3. On the product template, add the blocks you want: Product reviews, Star rating, Bundle & save and, to place it yourself, Notify me when back.
  4. For the one-tap offer after payment: Shopify admin › Settings › Checkout › Post-purchase page › ExiusCart.

Any theme with app blocks works: Dawn and every Online Store 2.0 theme. Vintage themes can use the app embed but not the blocks.

A theme made by ExiusCart (Store builder › Send to Shopify) is ready too: its product page and cart page take the ExiusCart blocks, the cart page already has the “Complete your order” box, and “Notify me” sits under Add to cart. Turn on the app embed there as well.

2

App blocks and settings

ExiusCart (app embed, every page)

SettingDefaultWhat it does
upsellsOnFrequently bought together on product pages and cart offers on the cart page
upsell_popupOnThe popup offer right after add to cart (needs upsells on)
drawer_upsellOn“Complete your order” inside the theme’s cart drawer, just above its checkout button (Dawn and most themes). Your own drawer: see Cart upsell below
notifyOn“Notify me when it’s back” under the Add to cart form while the chosen variant is sold out
popupsOnStorefront popups (email capture, spin to win, announcements, exit intent)
formsOnSign-up forms
card_starsOnStars under product cards on collection and search pages
star_color#f59e0bStar color for card stars
accent#111111Button color in upsell offers and the popup offer

Product reviews (product page)

SettingDefaultWhat it does
headingCustomer reviewsTitle above the reviews
filtersOnStar filters and sorting
helpfulOnThe Helpful button on each review
questionsOnQuestions and answers under the reviews
schemaOffGoogle star rating JSON-LD, written server-side from the metafields. Leave off if your theme already outputs Product structured data with a rating
star_color#f59e0bStar color
spacing24Space above and below, in px

Star rating (under the product title)

SettingDefaultWhat it does
countOnShow the rating number and review count
linkOnTapping the stars scrolls to the Product reviews block
soldOnThe “12,000+ sold” line (the store picks supplier, own sales or off in ExiusCart › Reviews › Settings)
star_color#f59e0bStar color

Bundle & save (product page)

SettingDefaultWhat it does
styleAutoList, cards, photos, pills or bold. Auto uses the style the seller picked for the offer in ExiusCart
accent#111827Selected option and button color
buttonAdd to cartButton text
after_addOpen the cart drawerOpen the cart drawer (or go to the cart page when the theme has none), or stay on the product page

Cart upsell (any section, or your own drawer)

SettingDefaultWhat it does
accent#111111Add button color
max_offers1How many cart offers to show (1 or 2)

The seller’s cart offers (ExiusCart › Marketing › Smart Upsells › Cart offer, or a product’s Bundles & offers › In the cart) for what is in the cart. It redraws itself whenever the cart changes: theme adds, ExiusCart adds, /cart/change.js, cart:refresh. A drawer your theme builds itself can’t take an app block, so put the mount in it and the app embed fills it:

HTML
<!-- Inside your own cart drawer, above the checkout button -->
<div data-exiuscart-cart-upsell></div>

<!-- Optional: show up to 2 offers, your button color -->
<div data-exiuscart-cart-upsell data-max-offers="2" data-accent="#0f766e"></div>

Notify me when back (product page)

Shows only while the chosen variant is sold out and follows variant changes. The email goes to the store’s Back in stock flow in ExiusCart, which emails the shopper once when the product has stock again, with a link back to this product page. Without the block, the app embed puts the same form under the Add to cart form.

After payment (Shopify’s post-purchase page)

The seller’s After payment offer (Smart Upsells, or a product’s Bundles & offers › After payment) shows between payment and the thank-you page. One tap adds it to the paid order and Shopify charges the same card, with no forms. ExiusCart works out the price on its side and signs the change, so it can’t be altered in the browser. Shopify shows the page for Online Store orders it can charge again; otherwise the shopper goes straight to the thank-you page.

Bundle & save: how offers are priced

The Bundle & save block shows every offer of the product in one picker, and how each one is priced at checkout:

OfferPicker showsPriced by
Quantity breaksBuy 1 / 2 / 3 / 4, save moreShopify automatic discounts, one per tier; only the best tier applies
Buy X get Y, free giftBuy 2 get 1 free, buy 3 pay 2A Shopify automatic Buy X get Y discount
Bundle (several per product)“Just this item”, then each set: this product + others, save a %ExiusCart’s discount function ExiusCart bundles: only whole sets get the %, a cart missing a product of the set gets nothing

A bundle is sent to Shopify only when every product in it is listed there. The set is kept on the app discount as the metafield $app:exiuscart-bundle.function-configuration; don’t edit those discounts in Shopify, ExiusCart makes them again.

3

Metafields

ExiusCart keeps these up to date a few seconds after any review is approved, edited or hidden, and when a product is sent to Shopify. A field with nothing to show is deleted, so a theme never shows an old number.

Namespace.keyTypeWhat it holds
reviews.ratingratingShopify’s standard review field. The store’s own buyers only, as Google requires
reviews.rating_countintegerHow many of those reviews
$app:exiuscart.store_ratingdecimalEverything the reviews block shows, imported reviews too
$app:exiuscart.store_review_countintegerCount for store_rating
$app:exiuscart.sold_labeltextReady text, e.g. “12,000+ sold”
$app:exiuscart.sold_countintegerThe number behind it
$app:exiuscart.ratingdecimalThe supplier’s rating (imported products)
$app:exiuscart.review_countintegerThe supplier’s review count
$app:exiuscart.delivery_daysintegerMost days delivery takes
$app:exiuscart.selling_pointslist of textUp to 6 short benefit lines

$app:exiuscart belongs to the app: only ExiusCart can write it, and Shopify deletes it when the app is uninstalled. Inside ExiusCart’s blocks it reads as product.metafields["$app:exiuscart"]. In your theme’s own code use the full namespace app--<app id>--exiuscart, which Shopify admin › Settings › Custom data › Products shows. The app id is the same on every store that installs ExiusCart from the Shopify App Store, so one theme works for all of them. (A store on a private copy of the app made just for it has that copy’s id.)

Liquid
{%- comment -%} In an ExiusCart app block, "$app" works directly: {%- endcomment -%}
{{ product.metafields["$app:exiuscart"].sold_label.value }}

{%- comment -%} In your theme's own code, use the full namespace.
  Shopify admin > Settings > Custom data > Products shows it: app--<app id>--exiuscart {%- endcomment -%}
{%- assign exc = product.metafields["app--<app id>--exiuscart"] -%}
{%- if exc.sold_label != blank -%}
  <p class="sold">{{ exc.sold_label.value }}</p>
{%- endif -%}

{%- comment -%} Shopify's own review fields: any theme can read them {%- endcomment -%}
{%- assign r = product.metafields.reviews.rating.value -%}
{%- if r -%}{{ r.rating | round: 1 }} / {{ r.scale_max }} ({{ product.metafields.reviews.rating_count }}){%- endif -%}

Moving from the old namespace. Before November 2026 these fields were in the public exiuscart namespace. Each product moves on its next update and the old field is deleted; ExiusCart’s blocks read both meanwhile. Switch theme code to the namespace above.

4

JavaScript events

All events fire on document as CustomEvents and bubble. Read the data from event.detail.

EventWhendetail
exiuscart:upsell:openedAn upsell offer or the add-to-cart popup is shownoffer_id, placement, products
exiuscart:upsell:acceptedThe shopper taps Add on an offeroffer_id, placement, product_id, variant_id, discount_code
exiuscart:upsell:addedThe item is in the cart (and the code applied)same as accepted, plus cart (the whole updated cart from /cart.js) and added
exiuscart:upsell:declinedNo thanks on the popup offeroffer_id, placement
exiuscart:upsell:closedThe popup offer closes (× , Escape, or Checkout)offer_id, placement, checkout?
exiuscart:upsell:errorShopify refused the add (sold out, limit)offer_id, message
exiuscart:offers:readyBundle & save has drawncount
exiuscart:offer:selectedThe shopper picks a Bundle & save optionoffer, option
exiuscart:offer:addBundle & save is about to additems
exiuscart:offer:addedBundle & save items are in the cartoffer, items, cart (the whole updated cart from /cart.js), added
exiuscart:offer:errorThe add failedoffer, error
exiuscart:popup:openedA storefront popup openspopup_id, type
exiuscart:popup:clickedIts button is clickedpopup_id, type, link
exiuscart:popup:subscribedEmail capture or spin to win got an emailpopup_id, type
exiuscart:popup:closedA popup closespopup_id, type
exiuscart:notify:subscribedA shopper asked to be emailed when a product is backproduct_id, email

Cart drawer offers fire the same upsell events, with placement drawer (or cart).

JavaScript
document.addEventListener('exiuscart:upsell:added', function (e) {
  // e.detail = { offer_id, placement, product_id, variant_id, discount_code, cart, added }
  // cart is the whole updated cart (/cart.js), so your drawer can redraw without fetching it
  myDrawer.render(e.detail.cart);
  window.dataLayer && dataLayer.push({ event: 'upsell_added', offer: e.detail.offer_id });
});

document.addEventListener('exiuscart:offer:added', function (e) {
  // Bundle & save: e.detail.cart is the whole updated cart too
  myDrawer.render(e.detail.cart);
  myDrawer.open();
});

document.addEventListener('exiuscart:popup:opened', function () { myDrawer.close(); });

After an upsell or Bundle & save add, ExiusCart refreshes Dawn-style cart-drawer andcart-notification sections, and fires cart:refresh for themes that listen for it.

5

JavaScript API

JavaScript
// Show the add-to-cart popup offer now, for these Shopify product ids
window.ExiusCartUpsells.open(['8123456789012']);

// After your theme redraws a section (quick view, variant change)
window.ExiusCartOffers.refresh();   // Bundle & save blocks
window.ExiusCartReviews.refresh();  // reviews + star blocks (they also re-mount by themselves)
window.ExiusCartExtras.refresh();   // cart drawer offers + Notify me (they also follow cart changes)
6

CSS hooks

Every element has a stable class, so you can restyle without fighting inline styles (use a more specific selector or !important for colors set by the block settings).

ClassElement
.exc-upsellFrequently bought together / cart offer box (with .exc-upsell--product or --cart)
.exc-upsell__offer · __head · __title · __badgeOne offer, its header, title and discount badge
.exc-upsell__item · __addOne product row and its Add button
.exc-upsell-popupThe add-to-cart popup overlay (data-offer-id on it)
.exc-upsell-popup__panel · __title · __textThe panel and its texts
.exc-upsell-popup__item · __add · __addedProduct rows, Add buttons, the added state
.exc-upsell-popup__actions · __decline · __checkout · __closeThe buttons at the bottom and ×
.exc-popup · .exc-popup--{type}Storefront popup overlay; type is email_capture, spin_wheel, announcement, countdown or exit_intent
.exc-popup__panel · __button · __closePopup panel, its button and ×
.exc-cart-upsell · --drawer · --cartCart drawer / Cart upsell offer box
.exc-cart-upsell__title · __badge · __item · __addIts title, discount badge, product rows and Add buttons
.exc-notifyThe Notify me box
.exc-test-badgeThe “test mode” pill (only the seller sees it)
[data-exiuscart-reviews] · [data-exiuscart-stars] · [data-exiuscart-offers] · [data-exiuscart-cart-upsell] · [data-exiuscart-notify]Block containers
CSS
/* Make the add-to-cart popup offer match your theme */
.exc-upsell-popup__panel { border-radius: 4px; font-family: var(--font-body-family); }
.exc-upsell-popup__add   { background: rgb(var(--color-button)); }
.exc-popup--exit_intent .exc-popup__panel { max-width: 520px; }
@media (max-width: 749px) { .exc-upsell__badge { display: none; } }
7

Discount codes and stacking

  • Upsell offers with a % off use a real Shopify discount code that only covers the offered products. It is added next to any code already in the cart through /cart/update.js, so the shopper keeps their own code. The code combines with order and product discounts unless the seller turns off “Works with the shopper’s own code”.
  • Bundle & save offers are Shopify automatic discounts: no code, applied at checkout. Product bundles use ExiusCart’s own discount function, also automatic. Fixed bundles are native Shopify bundles.
  • ExiusCart never sends shoppers to /discount/CODE, which would replace the code already in the cart.
8

Test mode

ExiusCart › Channels › Shopify › Test mode. While it is on, shoppers see no popups, upsell offers or sign-up forms. You see them when you:

  • open the store once with ?exiuscart=test (it lasts for that browser tab; ?exiuscart=off ends it), or
  • work in the theme editor.

In test mode every popup and offer shows every time (how-often rules are skipped), a small “test mode” pill shows bottom-left, and nothing you click counts in the stats. Reviews, stars and Bundle & save keep showing to everyone.

9

Speed

  • One small script for the app embed, loaded with defer; the popup and form scripts load only when their switch in the app embed is on.
  • Scripts are minified and gzipped (storefront.js is about 7 KB over the wire) and cached with an ETag.
  • No jQuery, no fonts, no CSS file: nothing blocks the first paint.
  • Review stars and JSON-LD come from metafields rendered by Shopify, not from an extra call.
10

Uninstall and your data

WhatOn uninstall
App blocks and app embedRemoved by Shopify with the app. Nothing was written into theme files
$app:exiuscartDeleted by Shopify (app-owned)
reviews.rating / rating_countStay, as Shopify’s standard review fields do with any review app. Disconnect from ExiusCart › Channels › Shopify first and ExiusCart deletes them too
Upsell discount codesStay in Shopify › Discounts so orders already placed keep their history. Delete them there if you like
Pixel and webhooksRemoved by Shopify
Reviews and orders in ExiusCartKept for the seller. Shopper data is erased on Shopify’s privacy requests (customers/redact, shop/redact)

Stuck on a theme?

Send us the store address and what you see. A real person replies.

Contact us