UpCart—Cart Drawer Cart Upsell Integration Guide
This integration guide lists the steps to integrate with UpCart—Cart Drawer Cart Upsell. When a bundle is added to the cart, it will refresh the cart drawer with the BYOB bundle SKU.
- Hit "Change Design" in BYOB to visit the theme editor
- Add a custom liquid section. Put it before other BYOB app blocks
- Add the code below to the custom liquid section
<script>
function afterBYOBAddtoCart(variants, variant_id) {
window.upcartRegisterAddToCart()
}
</script> - Hit the Save button
- Refresh the bundle page. The cart drawer will be updated when a bundle is built
Please note that
you must activate the UpCart app embed block in your Theme editor. Find it in Theme settings > App embeds.
Reference:
Upcart Public API