PairwellGuideSupportPrivacyTerms

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.

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

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).

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

StarterGrowthPlus
Fixed bundles, volume offers, buy X get Y10UnlimitedUnlimited
Frequently bought togetherPicked by handFrom your orders, auto-publishFrom your orders, auto-publish
Mix & match kits✓✓
Analytics90 days13 months
Channels13Unlimited
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.