Skip to content

Instantly share code, notes, and snippets.

@Collinsmbaka
Created September 24, 2022 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Collinsmbaka/8e84a4444b7842b94d4817b71f7aeb2b to your computer and use it in GitHub Desktop.
Save Collinsmbaka/8e84a4444b7842b94d4817b71f7aeb2b to your computer and use it in GitHub Desktop.
<!-- PAGEFLY CART HELPER - DO NOT DELETE -->
<script>
try {
setTimeout(function () {
window.__pagefly_helper_store__ &&
window.__pagefly_helper_store__.subscribe(function (res) {
$.getJSON('/cart.json').then(cart => {
Shopify.getCart(window.cartUpdateCallback, true)
});
});
}, 2500);
} catch (e) {
console.warn(e);
}
</script>
// add this window variable to line 686 in the theme.js
window.cartUpdateCallback = cartUpdateCallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment