Skip to content

Instantly share code, notes, and snippets.

@boldsupport
Last active October 11, 2017 15:39
Show Gist options
  • Save boldsupport/ae8b4aaac2874abd7912a789b8d80fd3 to your computer and use it in GitHub Desktop.
Save boldsupport/ae8b4aaac2874abd7912a789b8d80fd3 to your computer and use it in GitHub Desktop.
<div id='shappify_bundle' class='css_container' style='display:none' onclick='$("form.bundle-form").unbind("submit")'></div>
<div id='shappify_bundle-{{ product.id }}' onclick='$("form.bundle-form").unbind("submit")'></div>
<script>
if(typeof(Bold) === 'undefined') var Bold = {};
if(typeof(Bold.bundles) === 'undefined') Bold.bundles = {};
function bold_load_bundle(prodID) {
bundlejQuery("#shappify_bundle-" + prodID).html(Bold.bundles[prodID]);
if (typeof (bold_bundle_callback) == "function") {
bold_bundle_callback(prodID);
}
}
function bold_bundle_ready(){
Bold.bundles[{{ product.id }}] = htmloutput;
bold_load_bundle({{ product.id }});
}
</script>
<script src="//secure.apps.shappify.com/apps/bundle/product_bundle.php?shop={{ shop.permanent_domain }}&product_id={{ product.id }}"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment