You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart22/js/scripts/wc/gridQuantity.min.js

1 lines
770 B

!function(a){woodmartThemeModule.$document.on("wdShopPageInit wdProductsTabsLoaded wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist",function(){woodmartThemeModule.gridQuantity()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.gridQuantity()})}),woodmartThemeModule.gridQuantity=function(){a(".product-grid-item").on("change input",".quantity .qty",function(){var b=a(this),c=b.parent().parent().find(".add_to_cart_button");c.attr("data-quantity",b.val()),c.attr("href","?add-to-cart="+c.attr("data-product_id")+"&quantity="+b.val())})},a(document).ready(function(){woodmartThemeModule.gridQuantity()})}(jQuery);