Next Commerce
Upsells

Upsells

Post-purchase upsells let you offer additional products to a customer after their initial order has been placed. The customer accepts with a single click — no payment re-collection — and the order is updated server-side using the stored payment method.

How It Works

  1. The customer completes checkout. The order is created with a unique ref_id.
  2. They land on an upsell page with ?ref_id=ORD-1234 in the URL. The SDK loads the order into orderStore.
  3. The page shows one or more offers. If the order has supports_post_purchase_upsells: true, the accept button is enabled.
  4. The customer clicks accept. The SDK posts an addUpsell line to the order API and navigates to the next page.

Two Patterns

The SDK provides two enhancers for upsells. Pick whichever matches your design:

PatternActivation attributeWhen to use
Accept-upsell buttondata-next-action="accept-upsell"Lightweight. A single button on the page; the offer card is plain HTML. Pair with a PackageSelectorEnhancer if you need variant choice.
Upsell offer containerdata-next-upsell="offer"Container-driven. The offer card itself owns the add/skip buttons, options, and quantity controls. Best when the card is a self-contained widget.

Both patterns can run on the same page and target the same order.

On this page