Pairwell guide
Pairwell adds bundles to your Stencil or Catalyst storefront: fixed bundles (“the camera, a card and a bag, save 15%”), mix & match kits (“any 3 for €49”), volume offers (“buy 2, save 10%”) and frequently bought together sets learned from your orders. Every discount is a real BigCommerce promotion that Pairwell creates and keeps up to date, so checkout, taxes, refunds and your reports see the right line items and discounts. There are no hidden bundle products and no rewritten prices.
1. Install
Install Pairwell from the App Marketplace. Everything 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, Stencil channels included (Growth: 3 channels, Plus: unlimited). On install Pairwell reads your last 12 months of orders to learn what sells together; the Frequently bought together tab shows when that is done.
2. Stencil themes: nothing to install
Switch the Stencil channel on in Setup. Pairwell adds a script to your theme through BigCommerce's Script Manager (it is listed there as “Pairwell bundles”); your theme files are not changed. Switching the channel off, or the storefront switch in the Design tab, removes the script, and uninstalling Pairwell removes it too. The script is in the Functional consent category: if your store shows a cookie consent banner, the bundle blocks load for shoppers who accept functional cookies, and the others see your product pages as before.
- Product pages: the product's bundles, volume offer and “frequently bought together” appear in the buy column, under the options and Add to Cart. This works with Cornerstone and the themes built on it; for another theme, Setup › Custom theme placement takes the CSS selector of the element the blocks should follow. You can also place
<div data-pairwell-product="123"></div>yourself. - Product cards in listings get the “Save 15% in a bundle” badge.
- Mix & match kits show wherever you put their placeholder, for example in a Page Builder HTML block:
<div data-pairwell-kit="b14"></div>(the id is in the Bundles tab).
The blocks read live prices and stock from your storefront for each shopper, and add to the shopper's cart through BigCommerce's Storefront API in one request per bundle, so a bundle is added whole or not at all. The theme's cart count follows. If Pairwell cannot be reached, the page is unchanged.
3. Catalyst: add the components (once, about 15 minutes)
pnpm add @medusa-it/pairwell
Environment variables (Setup shows the values for each channel):
BIGCOMMERCE_CHANNEL_ID=1
PAIRWELL_PUBLIC_KEY=pw_pub_… # Setup tab
PAIRWELL_API_URL=https://pairwell.medusa-it.app
PAIRWELL_REVALIDATE_SECRET=pw_rev_… # Setup tab, for instant updates
Adding to the cart. A bundle is added with your own add-to-cart action, one call per product. Give Pairwell the cart read and remove too: if a product fails half-way (stock ran out), the ones already added are taken out again.
// core/app/[locale]/(default)/product/[slug]/_actions/pairwell.ts
'use server';
import { bindCartActions } from '@medusa-it/pairwell/server';
export const addBundleToCart = bindCartActions({
addToCart: ({ productId, variantId, quantity, selectedOptions }) => …,
getCart: async () => …, // [{ lineId, productId, variantId, quantity }]
removeItem: ({ lineId }) => …,
updateQuantity: ({ lineId, productId, variantId, quantity }) => …,
});
The components. Bind them to your Storefront GraphQL client once:
// core/lib/pairwell.ts
import { createPairwell, fromCatalystProducts, PAIRWELL_PRODUCTS_QUERY } from '@medusa-it/pairwell';
export const { BundleOffer, FrequentlyBoughtTogether, MixAndMatchKit, VolumeOffer, BuyXGetYOffer, BundleBadge } = createPairwell({
addBundleToCart,
getProducts: async (ids) => {
const { data } = await client.fetch({
document: graphql(PAIRWELL_PRODUCTS_QUERY),
variables: { entityIds: ids, first: ids.length },
customerAccessToken: await getSessionCustomerAccessToken(),
fetchOptions: { next: { revalidate: 60 } },
});
return fromCatalystProducts(data, ids);
},
});
Product page.
<VolumeOffer productId={product.entityId} />
<BuyXGetYOffer productId={product.entityId} />
<BundleOffer productId={product.entityId} />
<FrequentlyBoughtTogether productId={product.entityId} />
Product cards can carry <BundleBadge productId={…} />; a kit page shows <MixAndMatchKit kitId="b14" /> (the id is in the Bundles tab). With Makeswift, registerPairwellComponents from @medusa-it/pairwell/makeswift adds the bundle offer and the kit builder as blocks you can drag in.
Instant updates. Without it, a change shows within a minute.
// core/app/api/pairwell/revalidate/route.ts
import { createRevalidateRoute } from '@medusa-it/pairwell/next';
export const { POST } = createRevalidateRoute();
Each block reads the configuration on the server and its products in one Storefront GraphQL call: prices and stock are live and the shopper's, and the browser makes no extra request. A block with nothing to show renders nothing, and if Pairwell cannot be reached the page is unchanged. With Cartlift installed, its cart drawer opens after a bundle is added.
4. Bundles
- Fixed bundle: 2 to 10 products (a specific variant, or the shopper chooses), with a percentage off, an amount off, or a bundle price. A bundle price is turned into an amount off today's prices; when a member's price changes, Pairwell recomputes it, so the price shown is always the one checkout gives.
- Complete the bundle: a fixed bundle can also show as a choice on each of its products' pages: that product alone at its standard price, or the whole bundle with the saving and the other products under it. On a Stencil theme the choice sits in the buy box: your theme's Add to Cart adds the product alone, or (bundle chosen) the product with every option picked in the form, then the others. Choose it in the bundle's Placement step.
- Mix & match kit (Growth): a pool of categories, brands or products, with tiers (“3 for €49, 5 for €75”, or percentages) and optional required slots (“1 top + 1 bottom”). The tier applies to the least expensive items.
- Volume: rows such as “Single · Duo, save 10% · Trio for $80” on one product. Each tier is a percentage off each unit, an amount off each unit, or a price for the pack. Name the rows, add a subtitle, mark one “Most popular” and choose the row selected at first. On a Stencil theme the offer can sit in the buy box, in place of the quantity field: the rows set the quantity and your theme's Add to Cart button adds it. A tier can unlock a free gift (another product, given with every larger tier too): it is added with the offer and its promotion makes it free; the shopper sees which gifts the row unlocks. And shoppers can choose each item's options (two sizes in a pack of two), except in the buy box.
- Buy X, get Y: rows such as “Buy 1, get 1 free · Buy 2, get 3 free”, of the same product or another one (“buy 2 mugs, get a bag of coffee free”), free or at a percentage off. The same row names, “Most popular” and first row as volume offers; more of the same product can sit in the buy box on Stencil. The promotion applies when the cart holds the whole row.
- Placement, schedule, stacking: show on product pages and as a badge; a start and end date (the promotion carries them too); and whether the bundle may combine with your other promotions. The Bundles tab lists your other promotions on the channel that could stack, and warns when a member is already on sale.
- Stock: when a product of a bundle runs out, the bundle hides and its promotion pauses. It comes back when stock does. A kit can allow substitutes: then only the missing products hide.
Each bundle has one promotion under Marketing › Promotions, named “[Pairwell] …”. Unpublishing disables it; deleting the bundle deletes it. Please edit bundles in Pairwell, not the promotions: Pairwell sets them back to match the bundle.
5. Frequently bought together
Every night Pairwell reads your new orders and finds the products bought together more often than chance would explain (support: orders together; lift: how much more often). You choose the thresholds and how many companions to show (up to 3).
- Review queue or auto-publish (Growth): the model's suggestions wait for your approval, or go live every night.
- Pins and exclusions per product. On Starter, companions are picked by hand (pins).
- Incentive: “add all, save 5%”, backed by its own promotion; without one the set only shows.
- Cold start: optionally, bestsellers of the same category for products without enough orders.
- Margin guard (Plus): no discount takes a product below your minimum margin, based on the cost price in your catalog.
Several storefronts: bundles, sets and the design belong to one channel. To start a channel from another one (a second Catalyst store, or a Stencil twin whose checkout should give the same discounts), use Copy from at the top of the Bundles, Frequently Bought Together or Design tab, or Setup › Copy from another channel. It copies once; later changes stay on their channel. Copied bundles are added next to the channel's own, each with a promotion of its own, and stay drafts beyond your plan's limits.
6. Plans
| Starter | Growth | Plus | |
|---|---|---|---|
| Fixed bundles, volume offers, buy X get Y | 10 | Unlimited | Unlimited |
| Frequently bought together | Picked by hand | From your orders, auto-publish | From your orders, auto-publish |
| Mix & match kits | ✓ | ✓ | |
| Analytics | 90 days | 13 months | |
| Channels | 1 | 3 | Unlimited |
| Margin guard, priority support | ✓ |
Plans are billed monthly by BigCommerce on your store invoice. If a subscription ends, the storefront keeps showing your bundles for 72 hours, then they hide and Pairwell's promotions are disabled.
Uninstalling Pairwell disables its promotions where BigCommerce still allows it; if some remain, delete the “[Pairwell] …” promotions under Marketing › Promotions. Your bundles are kept for 30 days in case you reinstall.
Questions? See Support.