-
-
Save Sally165/5a97b8a66b731307da5db53d892d3541 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
<!-- 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 => { | |
$.get({url: '/cart?view=ajax'}).done(function(newCartItems) { | |
const $newCartItems = $.parseHTML(newCartItems); | |
$('[data-mini-cart-items]').html($newCartItems); | |
$('[data-mini-cart]').addClass('is-visible'); | |
}) | |
}); | |
}); | |
}, 2500); | |
} catch (e) { | |
console.warn(e); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment