-
-
Save Sally165/eaf5b72c20f69dbbf7aceb07d56c3bff to your computer and use it in GitHub Desktop.
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
<script> | |
try { | |
setTimeout(function() { | |
console.log('aaa') | |
ajaxCart.init({ | |
formSelector: '#AddToCartForm--' , | |
cartContainer: '#CartContainer', | |
addToCartSelector: '#AddToCart--', | |
enableQtySelectors: true, | |
moneyFormat: theme.strings.moneyFormat | |
}); | |
console.log('bbb') | |
window.__pagefly_helper_store__ && | |
window.__pagefly_helper_store__.subscribe(function(c) { | |
window.cart && | |
window.cart._promiseChange({ | |
url: "/cart.json", | |
dataType: "json" | |
}); | |
window.theme.sections.instances[0]._openCartDrawer(new Event("click")); | |
}); | |
}, 1500); | |
} catch (e) { | |
console.warn(e); | |
}</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment