Custom BYOB UI
Prerequisites
1. Add your HTML scaffold
<!-- _theme/sections/custom-byob.liquid or similar -->
<div id="my-bundle-root" style="display: none;">
<div id="my-steps"></div>
<div id="my-cart-drawer">
<ul id="my-cart-items"></ul>
<p>Total: <span id="my-cart-total">$0.00</span></p>
<button id="my-checkout-btn" disabled>Checkout</button>
</div>
</div>
<div id="my-bundle-loading">Loading bundle…</div>
<div id="my-bundle-error" style="display: none;"></div>2. Wait for the SDK to be ready
3. Render steps and products
4. Keep the cart in sync
5. Handle checkout
6. Show a discount tier indicator (optional)
7. Handle errors
Hiding the default UI
Last updated
Was this helpful?
