Skip to content

Interactive Playground

Experience Campaign Cart features with live, interactive examples. Everything on this page is fully functional - try clicking the products and buttons!

🚀 Live Demo Status:Loading SDK...

Swap Mode Selection

Click any product to instantly replace your cart selection. Perfect for single-product funnels!

3x Mega Bundle
$47.97 $119.97
60% off • 3x units
2x Value Pack
$35.98 $79.98
55% off • 2x units
1x Starter
$19.99 $39.99
50% off • 1x unit
Attribute Live Value
selection.{selectorId}.name Package name 3x Mega Bundle
selection.{selectorId}.packageId 4
selection.{selectorId}.quantity 3
selection.{selectorId}.totalUnits Total units 3
selection.{selectorId}.price Unit price $15.99
selection.{selectorId}.total Total price $47.97
selection.{selectorId}.compareTotal Retail price $119.97
selection.{selectorId}.savingsAmount $72.00
selection.{selectorId}.savingsPercentage 60%
selection.{selectorId}.hasSavings true
selection.{selectorId}.isBundle true

View all selection attributes →

Cart Summary

0
Subtotal $0.00
Discount -$0.00
Shipping $0.00
Total $0.00

Cart is empty

Select products above

<!-- Click to replace current selection -->
<div data-next-cart-selector
data-next-selection-mode="swap">
<div data-next-selector-card
data-next-package-id="1">
Product Option 1
</div>
<div data-next-selector-card
data-next-package-id="2">
Product Option 2
</div>
</div>

Use when: You want customers to choose ONE option from multiple choices (e.g., subscription tiers, product variants)

Show/hide content based on cart state:

<!-- Show when cart is empty -->
<div data-next-show="cart.isEmpty">
Your cart is empty - select a product above!
</div>
<!-- Show when cart has items -->
<div data-next-show="cart.hasItems">
<button data-next-action="checkout">
Checkout Now
</button>
</div>
<!-- Show based on total -->
<div data-next-show="cart.total > 50">
🎉 You qualify for free shipping!
</div>
<!-- Show when specific product selected -->
<div data-next-show="selection.drone-demo.packageId == 4">
Best choice! You're getting our best deal!
</div>

Display prices that update automatically:

<!-- Show selected product details -->
<div class="selected-product">
<h3 data-next-display="selection.product.name">Product Name</h3>
<p>
Price: <span data-next-display="selection.product.price">$0</span>
<s data-next-display="selection.product.comparePrice">$0</s>
</p>
<p>
You save: <span data-next-display="selection.product.savings">$0</span>
(<span data-next-display="selection.product.savingsPercent">0%</span>)
</p>
</div>

Create checkout flows with form integration:

<form data-next-form="checkout">
<!-- Step 1: Product Selection -->
<div data-next-step="1">
<h3>Choose Your Package</h3>
<!-- Product selector here -->
<button data-next-action="next-step">Continue</button>
</div>
<!-- Step 2: Customer Info -->
<div data-next-step="2" data-next-show="step == 2">
<h3>Your Information</h3>
<input name="email" type="email" required>
<input name="phone" type="tel">
<button data-next-action="checkout">Complete Order</button>
</div>
</form>

Buttons & Actions

Test different button actions and states Try Buttons →

Display Elements

Dynamic content that updates automatically Try Display →

Form Components

Input fields and form integration Try Forms →

All examples on this page are ready to use. Simply:

  1. Copy the HTML code
  2. Replace the API key with yours
  3. Update product IDs to match your dashboard
  4. Customize the styling to match your brand

Need help? Check our API Reference or contact support.