geno/wp-content/themes/astra/assets/js/minified/shop-add-to-cart.min.js

1 line
731 B
JavaScript
Raw Normal View History

2024-02-01 17:24:18 +05:30
jQuery(document).ready(function(){jQuery(document.body).on("added_to_cart",function(){var a;!jQuery(".single_add_to_cart_button").hasClass("loading")&&astra_shop_add_to_cart.shop_add_to_cart_action&&(a=jQuery("#astra-mobile-cart-drawer"),astra_shop_add_to_cart.elementor_preview_active||("slide_in_cart"===astra_shop_add_to_cart.shop_add_to_cart_action&&a&&(a.addClass("active"),jQuery("html").addClass("ast-mobile-cart-active")),astra_shop_add_to_cart.is_astra_pro&&("redirect_cart_page"===astra_shop_add_to_cart.shop_add_to_cart_action&&window.open(astra_shop_add_to_cart.cart_url,"_self"),"redirect_checkout_page"===astra_shop_add_to_cart.shop_add_to_cart_action)&&window.open(astra_shop_add_to_cart.checkout_url,"_self")))})});