Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/themes/Avada/assets/min/js/general/ |
Current File : //var/www/web28/html/wp-content/themes/Avada/assets/min/js/general/avada-woo-products.js |
jQuery(window).on("load",function(){jQuery(".product-images").each(function(){!jQuery(this).find("img").length&&jQuery(this).find(".onsale").length&&jQuery(this).css("min-height","45px")})}),jQuery(document).ready(function(){var e,t,a,r;for(jQuery("body").on("click",".add_to_cart_button.ajax_add_to_cart:not(.disabled), .add_to_cart_button.ajax_variation_add_to_cart:not(.disabled)",function(){var e=jQuery(this).closest(".product, li, .swiper-slide"),t=e.find(".cart-loading"),a=!!e.hasClass("post-card")&&e.find(".fusion-image-wrapper");a&&a.addClass("hover"),t.find("i").removeClass("awb-icon-check-square-o").addClass("awb-icon-spinner"),t.fadeIn(),setTimeout(function(){t.find("i").hide().removeClass("awb-icon-spinner").addClass("awb-icon-check-square-o").fadeIn(),t.closest(".fusion-clean-product-image-wrapper, li").addClass("fusion-item-in-cart"),a&&a.removeClass("hover")},2e3)}).on("click",".add_to_cart_button.ajax_variation_add_to_cart:not(.disabled)",function(e){var t=jQuery(this),a=t.closest("form.cart"),r=a.find('input:not([name="product_id"]), select, button, textarea').serializeArray()||0,i=-1!==a.attr("action").indexOf("?")?a.attr("action")+"&wc-ajax=get_refreshed_fragments":a.attr("action")+"?wc-ajax=get_refreshed_fragments";e.preventDefault(),t.hasClass("disabled_ajax_add_to_cart")?a.trigger("submit"):(jQuery(document.body).trigger("adding_to_cart",[t,r]),jQuery.ajax({type:"POST",url:i,data:r,success:function(e){e.error&&e.product_url?window.location=e.product_url:jQuery(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,t])}}))}),jQuery("body").on("should_send_ajax_request.adding_to_cart",function(e,t){return!jQuery(t).hasClass("disabled")}),jQuery("body").on("mouseenter mouseleave",".products .product, .fusion-woo-slider .swiper-slide, .post-card.product",function(e){var t=jQuery(this).find(".cart-loading");t.find("i").hasClass("awb-icon-check-square-o")&&("mouseenter"===e.type?t.fadeIn():t.fadeOut())}),e=avadaWooCommerceVars.title_style_type.split(" "),t="","",a="title-heading-left",r=0;r<e.length;r++)t+=" sep-"+e[r];t.indexOf("underline"),jQuery("body").hasClass("rtl")&&(a="title-heading-right"),jQuery(".woocommerce.single-product .related.products > h2").each(function(){jQuery(this).replaceWith(function(){return'<div class="fusion-title title'+t+'"><h'+avadaWooCommerceVars.related_products_heading_size+' class="'+a+'">'+jQuery(this).html()+"</h"+avadaWooCommerceVars.related_products_heading_size+'><span class="awb-title-spacer"></span><div class="title-sep-container"><div class="title-sep'+t+' "></div></div></div>'})}),jQuery(".woocommerce.single-product .upsells.products > h2").each(function(){jQuery(this).replaceWith(function(){return'<div class="fusion-title title'+t+'"><h3 class="'+a+'">'+jQuery(this).html()+'</h3><span class="awb-title-spacer"></span><div class="title-sep-container"><div class="title-sep'+t+' "></div></div></div>'})}),jQuery(".products-6 li, .products-5 li, .products-4 li, .products-3 li, .products-2 li").removeClass("last"),jQuery(document).on("change",".fusion-post-card-cart .qty",function(e){void 0!==this.value&&jQuery(e.target).closest(".fusion-post-card-cart").find(".ajax_add_to_cart").attr("data-quantity",this.value)})}),jQuery(window).on("wcpf_after_ajax_filtering",function(){var e=new URLSearchParams(window.location.search);jQuery(".catalog-ordering").find("a").each(function(){var t,a=jQuery(this).attr("href");if(void 0!==a){for(t of e.entries())-1===a.indexOf(t[0])&&(a+="&"+t[0]+"="+t[1]);jQuery(this).attr("href",a)}})});
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare