Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- PAGEFLY CART HELPER - DO NOT DELETE -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
- <script>
- try {
- setTimeout(function () {
- window.__pagefly_helper_store__ &&
- window.__pagefly_helper_store__.subscribe(function (r) {
- $.getJSON('/?sections=cart-notification-product,cart-notification-button,cart-drawer,cart-icon-bubble').then( sections => {
- const cartDrawer =document.querySelector('cart-notification') || document.querySelector('cart-drawer')
- cartDrawer.classList.remove('is-empty')
- r.sections = sections
- cartDrawer.renderContents(r)
- })
- });
- }, 2500);
- } catch (e) {
- console.warn(e);
- }
- </script>
- <!-- PAGEFLY CART HELPER - END -->
- <!-- PAGEFLY CART HELPER - DO NOT DELETE -->
- <script>
- window.addEventListener("load", () => {
- try {
- window.__pagefly_helper_store__ &&
- window.__pagefly_helper_store__.subscribe(function (r) {
- async function fetchData() {
- const response = await fetch(
- "/?sections=cart-notification-product,cart-notification-button,cart-drawer,cart-icon-bubble"
- );
- const sections = await response.json();
- const cartDrawer =
- document.querySelector("cart-notification") ||
- document.querySelector("cart-drawer");
- cartDrawer.classList.remove("is-empty");
- r.sections = sections;
- cartDrawer.renderContents(r);
- }
- fetchData();
- });
- } catch (e) {
- console.error("PF Error: ", e);
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement