");}$('.icon-shopping-bag').attr('data-icon-label',cartQuantity);$('.header-cart-title .woocommerce-Price-amount.amount bdi').html(cartSubtotal);}else{$.ajax({url:ajax_url,type:'POST',data:{action:'get_cart_quantity'},success:function(response){$('.sl-coupon-message').remove();$('.woocommerce-notices-wrapper').before("
"+response.message+"
");$.cookie('cart_notice',response.message,{expires:1,path:'/'});$.cookie('cart_quantity',response.quantity,{expires:1,path:'/'});$.cookie('cart_subtotal',response.subtotal,{expires:1,path:'/'});$('.icon-shopping-bag').attr('data-icon-label',response.quantity);$('.header-cart-title .woocommerce-Price-amount.amount bdi').html(response.subtotal);}});}}function clearCartCookies(){$.removeCookie('cart_notice',{path:'/'});$.removeCookie('cart_quantity',{path:'/'});$.removeCookie('cart_subtotal',{path:'/'});}bindCartEvents();$(window).on('resize',function(){bindCartEvents();});updateCartNotice();$(document.body).on('added_to_cart',function(){clearCartCookies();updateCartNotice();});$(document.body).on('updated_cart_totals',function(){clearCartCookies();updateCartNotice();});$(document.body).on('update_cart_item_quantity',function(){clearCartCookies();updateCartNotice();});$(document.body).on('removed_from_cart',function(){clearCartCookies();updateCartNotice();});if (true) {clearCartCookies();updateCartNotice();}$(document).ajaxComplete(function(e,t,a){-1!==a.url.indexOf("cart/?remove_item=")&&(clearCartCookies(),updateCartNotice())});}); /* ]]> */

xxxx-->