Last active
October 11, 2017 15:39
-
-
Save boldsupport/ae8b4aaac2874abd7912a789b8d80fd3 to your computer and use it in GitHub Desktop.
Product Bundles linked from: https://support.boldcommerce.com/hc/en-us/articles/208527056-Product-Bundles-on-QuickShop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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