Custom MOB UI
Prerequisites
1. Add your HTML scaffold
<div id="my-mob-root" style="display: none;">
<div id="my-mob-options"></div>
<div id="my-mob-summary">
<p id="my-mob-price"></p>
<button id="my-mob-add-btn" disabled>Add to cart</button>
<p id="my-mob-error" style="display: none; color: red;"></p>
</div>
</div>
<div id="my-mob-loading">Loading bundle…</div>2. Wait for the SDK to be ready
3. Render options (products mode)
4. Handle single_product_options mode
5. Keep the UI in sync with selections
6. Handle add-to-cart states
7. Show discount info (optional)
8. Handle load errors
Hiding the default UI
Last updated
Was this helpful?
