Cartlift guide
Cartlift replaces the jump to the cart page with a slide-out cart on your Catalyst or Stencil storefront: line items with quantity steppers, a progress bar towards free shipping, a free gift or a discount, recommendations with one-click add, quantity-break nudges and add-ons such as gift wrap. It works on your store's own cart (Catalyst's cart actions, or BigCommerce's Storefront API on Stencil), so there is only ever one cart.
1. Install
Install Cartlift from the App Marketplace. Every setting belongs to a channel (storefront): choose it with the selector at the top of each tab. The first Catalyst channel is switched on at install; switch others on in Setup (Growth: 3 channels, Plus: unlimited).
2a. Stencil themes: switch the channel on
Nothing to install. In Setup, switch the Stencil channel on: Cartlift adds a script named “Cartlift cart drawer” to the channel's storefront pages through BigCommerce's Script Manager (Storefront › Script Manager), and the drawer shows at once. Switching the channel off, or uninstalling Cartlift, removes the script. Your theme files and /cart.php are not changed. The script is in the Functional consent category: if your store shows a cookie consent banner, the drawer loads for shoppers who accept functional cookies, and the others get your theme's own cart.
- Add to cart on product pages (and in quick view) adds through your theme's own request, so every product option keeps working, then opens the drawer. Listing Add to Cart buttons add in place; for products that need a choice they still go to the product page.
- The cart icon in the header opens the drawer instead of the theme's cart preview. The header count follows the drawer.
- Both can be switched off in Setup. Themes that do not use Cornerstone's markup can add their own CSS selectors there. Your own buttons can open the drawer with
window.Cartlift.open(). - Prices, stock and recommendations are read in the shopper's browser from your storefront, with a Storefront API token Cartlift creates for the channel, so they match the shopper's currency and customer group. Tiers aimed at countries are not shown on Stencil (the storefront does not tell the browser the shopper's country).
2b. Catalyst: add the drawer (once, about 15 minutes)
pnpm add @medusa-it/cartlift
Environment variables (Setup shows the values for each channel):
BIGCOMMERCE_CHANNEL_ID=1
CARTLIFT_PUBLIC_KEY=cl_pub_… # Setup tab
CARTLIFT_API_URL=https://cartlift.medusa-it.app
CARTLIFT_REVALIDATE_SECRET=cl_rev_… # Setup tab, for instant updates
Cart actions. Wire Catalyst's cart mutations once, in a server-actions file:
// core/app/[locale]/(default)/cart/_actions/cartlift.ts
'use server';
import { createCartAdapter } from '@medusa-it/cartlift/server';
const cart = createCartAdapter({
getCart, // your cart + checkout query
addToCart: ({ productId, variantId, quantity, selectedOptions }) => …,
updateQuantity: ({ lineId, productId, variantId, quantity }) => …,
removeItem: ({ lineId }) => …,
applyCoupon: (code) => …,
getCartId: async () => (await cookies()).get('cartId')?.value,
});
export const addToCart = cart.addToCart;
export const updateQuantity = cart.updateQuantity;
export const removeItem = cart.removeItem;
export const applyCoupon = cart.applyCoupon;
Layout. Wrap the storefront and render the drawer:
import { CartDrawerProvider, CartDrawer } from '@medusa-it/cartlift';
<CartDrawerProvider cart={cart} checkout={checkout} actions={{ addToCart, updateQuantity, removeItem, applyCoupon }}>
{children}
<CartDrawer />
</CartDrawerProvider>
Open on add to cart. Wrap the product page's action in one line:
import { wrapAddToCart } from '@medusa-it/cartlift/server';
export const addToCart = wrapAddToCart(originalAddToCart);
Header. Swap Catalyst's cart icon for <CartTrigger count={cartCount} />.
Routes. Recommendations and live product data (one request on the drawer's first open), and instant updates after a save:
// core/app/api/cartlift/recommendations/route.ts
import { createRecommendationsRoute } from '@medusa-it/cartlift/next';
import { CARTLIFT_PRODUCTS_QUERY, fromCatalystProducts } from '@medusa-it/cartlift/server';
export const { GET } = createRecommendationsRoute({
getProducts: async (ids) => {
const { data } = await client.fetch({
document: graphql(CARTLIFT_PRODUCTS_QUERY),
variables: { entityIds: ids, first: ids.length },
customerAccessToken: await getSessionCustomerAccessToken(),
fetchOptions: { next: { revalidate: 300 } },
});
return fromCatalystProducts(data, ids);
},
});
// core/app/api/cartlift/revalidate/route.ts
import { createRevalidateRoute } from '@medusa-it/cartlift/next';
export const { POST } = createRevalidateRoute();
Your /cart page is not touched: the drawer is added next to it.
The first Catalyst channel is switched on at install; Stencil channels wait for you to switch them on, because doing so changes the live storefront at once.
3. Configure
- Design: colours (empty = your theme's), font, corner radius, side, bottom sheet on phones, width, which parts show (coupon, order note, shipping line, express checkout slot, bestsellers in the empty cart), texts, add-ons and an announcement line.
- Modules: switch on and drag into order: progress bar, free gift, recommendations, quantity breaks, add-ons. A progress bar placed first sits above the items; the rest follow them.
- Thresholds: free shipping, a free gift or a % discount from a spend, per currency, customer group and country. Gift and discount tiers create a promotion in BigCommerce (Marketing › Promotions, named “Cartlift: …”), so checkout gives what the drawer promises. Free shipping uses your store's own free-shipping rule.
- Rules: “if the cart contains these products / categories / brands, or its total is between…, show these products or this category”. Higher priority first. Test shows what a given cart would get.
- Several storefronts: every setting belongs to one channel. To start a channel from another one's setup (for example your Catalyst store's rules on its Stencil twin), use Copy from at the top of the Design, Modules, Thresholds or Rules tab, or Setup › Copy settings from another channel. It copies once; later changes stay on their channel. Copied gift and discount tiers get promotions of their own.
- Analytics: drawer opens, recommendation impressions, clicks and adds, thresholds reached, and the average order value of orders with and without an upsell from the drawer.
Recommendations: your rules first, then products often bought together (computed every night from your orders, Growth and Plus), then bestsellers. The storefront only receives product ids and reads prices and stock itself, so they are always right for the shopper's currency and customer group.
4. Plans
| Starter | Growth | Plus | |
|---|---|---|---|
| Drawer, progress bar, recommendations from rules | ✓ | ✓ | ✓ |
| Thresholds | 1 | Unlimited | Unlimited |
| Free gift automation, quantity breaks, add-ons | ✓ | ✓ | |
| “Bought together” recommendations | ✓ | ✓ | |
| Analytics | 90 days | 13 months | |
| Channels | 1 | 3 | Unlimited |
| Recommendations API (secret key) | ✓ |
Uninstalling Cartlift cannot remove the promotions it created (BigCommerce revokes its access first). Switch the gift and discount tiers off before uninstalling, or delete the “Cartlift: …” promotions under Marketing › Promotions afterwards.
Questions? See Support.