BYOB event triggers / methods / callbacks
Below are the javascript (js) event triggers:
initBYOBBundle(this) - call when the bundle is initialized
beforeBYOBAddtoCart(this) - call right before a bundle is built
afterBYOBAddtoCart(variants, variant_id) - call after the bundle variant is added to cart. Variants are the selected variants and variant_id is the new variant generated by the app
initProductCard(this) - call when a product card is initialized
You can implement them on your own by adding a custom HTML or liquid section. Here's an example:
<script>
function initBYOBBundle(this) {
YOUR CODE
}
</script>