ExiusCart Developers

ExiusCart on BigCommerce

For developers and agencies working on a BigCommerce store connected to ExiusCart. Everything runs through a store-level API account the merchant makes: products and orders through the REST API, offers as native BigCommerce promotions, and the widget through Script Manager. No theme files are edited.

Building your own storefront instead? See the API reference.

Works with
Stencil themes
Permissions
4
Events
8
Theme files edited
None
On this page
  1. 1. Switch it on
  2. 2. API account permissions
  3. 3. What ExiusCart syncs
  4. 4. Bundles & offers as promotions
  5. 5. The Bundle & save widget
  6. 6. Cart add-ons, Notify me, confirmation offer
  7. 7. JavaScript events
  8. 8. Styling
  9. 9. Disconnect and your data
1

Switch it on

  1. BigCommerce › Settings › Store-level API accounts › Create API account (type V2/V3 API token).
  2. Set the 4 permissions below to modify and save. Copy the access token and the store hash (the part after /stores/ in the API path).
  3. In ExiusCart › Channels › BigCommerce, paste the store hash and access token.
  4. For bundles & offers: open a product in ExiusCart › Bundles & offers and keep BigCommerce ticked under “Shows on”. The promotion and the widget are made for you.
2

API account permissions

PermissionLevelWhy ExiusCart needs it
ProductsmodifySend products, images, prices and stock
OrdersmodifyBring orders in and send tracking
MarketingmodifyBundles & offers become BigCommerce promotions, so the discount is taken at checkout
ContentmodifyAdds the ExiusCart scripts through Script Manager (Bundle & save, cart add-ons, Notify me, order confirmation offer)

ExiusCart checks each permission when the store connects. If Marketing or Content is missing, or later refused, ExiusCart › Channels › BigCommerce shows which one and why.

Fixing a missing permission: edit the same API account in BigCommerce, set it to modify and save. The token does not change, so just press I’ve ticked them, check again in ExiusCart. A new API account works too: use Use a new token.
3

What ExiusCart syncs

WhatDirectionNotes
Products, images, prices, stockExiusCart → BigCommerceSent when the seller pushes a product
OrdersBigCommerce → ExiusCartImported for fulfilment, invoices and reports; paid orders lower ExiusCart stock
ShippingExiusCart → BigCommerceA real BigCommerce shipment with carrier and tracking number, and the order set to Shipped
Bundle kitsExiusCartEach part’s stock is taken and given back on cancel, on every channel
4

Bundles & offers as promotions

Each offer becomes one automatic promotion (Marketing › Promotions), so the cart and checkout price it with no code to type.

Offer in ExiusCartPromotion in BigCommerce
Quantity breaksOne promotion with one rule per tier, biggest first. Each rule stops the others, so only the best tier reached applies
Buy X get YA cart condition on the bought product and a discount on the product given
Free giftBuy X get Y at 100% off
  • Start and end dates are copied. Editing the offer in ExiusCart updates the promotion; deleting it deletes the promotion.
  • Stacking follows the seller’s “works with product discounts” switch in ExiusCart (can_be_used_with_other_promotions).
  • Promotions are made by ExiusCart, so edit them in ExiusCart. A change made in BigCommerce is replaced on the next save.
5

The Bundle & save widget

ExiusCart adds one script, ExiusCart Bundle & save, in Storefront › Script Manager: footer, storefront pages only, consent category Essential.

DetailBehaviour
Where it showsInside the product form (form[data-cart-item-add]), above the quantity field, on Stencil themes like Cornerstone
Product optionsThe options the shopper picked in the form are sent with the item
Adding to the cartThrough the Storefront Cart API (/api/storefront/carts), then to /cart.php
No offerProducts with no offer show nothing
SpeedMinified and gzipped with an ETag, loaded in the footer

Headless or a custom theme without that form? Print the container yourself and the script finds it: <div data-exiuscart-offers data-platform="bigcommerce" data-store="<store hash>" data-product-id="<id>" data-price="<price>" data-currency="<code>"></div>

After a quick view draws a product, call window.ExiusCartOffers.refresh().

6

Cart add-ons, Notify me, confirmation offer

Set in ExiusCart: open a product › Bundles & offers › In the cart or After payment (or Growth › Upsells), and keep BigCommerce ticked under “Shows on”. Saving one adds a second script for you: ExiusCart after payment, on the order confirmation page only. The cart box and Notify me come with the Bundle & save script, so they need nothing extra.

FeatureWhere it showsWhat happens
Complete your orderCart page and the cart previewShows add-ons for what is in the cart. + Add uses the Storefront Cart API; the cart page reloads to show the new line. Products with required options send the shopper to the product page
Notify me when it’s backSold-out product pagesRead from the page’s BCData. The shopper leaves an email; when stock comes back ExiusCart’s Back in stock email goes out once, linking back to the same BigCommerce product page
Order confirmation offer/checkout/order-confirmationThe order’s products are read from /api/storefront/order/{id}. Add puts the add-on in a new cart and goes straight to checkout
BigCommerce prices its own cart, so a % off set on these offers is not taken there: the add-on sells at its normal price. Bundles & offers above are still discounted by their promotions.
Place the boxes yourself
<!-- Custom theme or headless: place the boxes yourself -->
<div data-exiuscart-cart-upsell></div>
<div data-exiuscart-notify data-product-id="{{product.id}}" data-available="false"></div>
7

JavaScript events

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

EventWhendetail
exiuscart:offers:readyThe widget has drawncount
exiuscart:offer:selectedThe shopper picks an optionoffer, option
exiuscart:offer:addedThe items are in the cartoffer, items, cart
exiuscart:offer:errorThe add failed (sold out, option missing)offer, error
exiuscart:upsell:openedA cart or confirmation add-on is shownoffer_id, placement, products
exiuscart:upsell:addedThe add-on is in the cartoffer_id, placement, product_id, cart
exiuscart:upsell:errorThe add-on could not be addedoffer_id, placement, message
exiuscart:notify:subscribedA shopper asked to be told when it’s backproduct_id

After your cart preview redraws, call window.ExiusCartExtras.refresh().

Listen in your theme
document.addEventListener('exiuscart:offer:added', function (e) {
  // e.detail = { offer, items, cart, added }  (cart = the Storefront Cart API cart after the add)
  window.dataLayer && dataLayer.push({ event: 'bundle_added', offer: e.detail.offer });
});

document.addEventListener('exiuscart:upsell:added', function (e) {
  // A cart add-on was added: e.detail = { offer_id, placement, product_id, cart }
});
8

Styling

The widget inherits your theme’s font and text color. One CSS variable, --ec-accent, colors the selected option, the badges and the Add button. Each offer box has data-exiuscart-offer with its id. Cart add-ons use .exc-cart-upsell, .exc-cart-upsell__item and .exc-cart-upsell__add; Notify me is .exc-notify.

CSS
/* Script Manager > add a script (or your theme's stylesheet) */
[data-exiuscart-offers] { --ec-accent: #1d4ed8; }   /* selected border, badges, Add button */

/* The options are buttons; the chosen one has aria-pressed="true" */
[data-exiuscart-offers] button[aria-pressed="true"] { box-shadow: 0 0 0 3px rgb(29 78 216 / .15); }
9

Disconnect and your data

WhatWhen you disconnect
SyncDisconnect in ExiusCart › Channels › BigCommerce: products, orders and offers stop syncing
ScriptsBoth ExiusCart scripts are removed by BigCommerce when you delete the API account (they are installed with auto-uninstall)
PromotionsStay in Marketing › Promotions so past orders keep their history. Delete or disable them there
Products sent by ExiusCartStay in BigCommerce. Delete them there if you like
Access tokenStored encrypted in ExiusCart and never sent to the browser. Deleting the API account revokes it
Orders in ExiusCartKept for the seller’s records and invoices

Stuck on a store?

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

Contact us