Menu Categories
Currency Selector

/

/

/

(function($) { // This wrapper ensures code runs correctly and protects the '$' alias. // --- PART 1: ADD SHIPPING TEXT --- function addShippingText() { if ($('.cart-popup-footer').length > 0 && $('#shipping-text-variant').length === 0) { var shippingIcon = ''; var shippingText = '
' + shippingIcon + 'Fast & Secure Shipping Calculated at Checkout
'; $('.cart-popup-footer').after(shippingText); } } var checkInterval = setInterval(addShippingText, 250); setTimeout(function() { clearInterval(checkInterval); }, 5000); // --- PART 2: BULLETPROOF AUTO-OPEN CART --- $(document.body).on('added_to_cart', function() { setTimeout(function() { $('.etheme-elementor-off-canvas__toggle_button').click(); }, 250); }); $(document).on('click', 'button.single_add_to_cart_button', function() { if (!$(this).hasClass('disabled')) { sessionStorage.setItem('ctf_open_cart_flag', 'true'); } }); if (sessionStorage.getItem('ctf_open_cart_flag') === 'true') { sessionStorage.removeItem('ctf_open_cart_flag'); setTimeout(function() { $('.etheme-elementor-off-canvas__toggle_button').click(); }, 250); } })(jQuery);