1/* global woodmart_settings */ 2(function($) { 3 woodmartThemeModule.$document.on('wdShopPageInit wdProductsTabsLoaded wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist', function () { 4 woodmartThemeModule.gridQuantity(); 5 }); 6 7 $.each([ 8 'frontend/element_ready/wd_products.default', 9 'frontend/element_ready/wd_products_tabs.default' 10 ], function(index, value) { 11 woodmartThemeModule.wdElementorAddAction(value, function() { 12 woodmartThemeModule.gridQuantity(); 13 }); 14 }); 15 16 woodmartThemeModule.gridQuantity = function() { 17 $('.product-grid-item').on('change input', '.quantity .qty', function() { 18 var $this = $(this); 19 var add_to_cart_button = $this.parent().parent().find('.add_to_cart_button'); 20 21 add_to_cart_button.attr('data-quantity', $this.val()); 22 add_to_cart_button.attr('href', '?add-to-cart=' + add_to_cart_button.attr('data-product_id') + '&quantity=' + $this.val()); 23 }); 24 }; 25 26 $(document).ready(function() { 27 woodmartThemeModule.gridQuantity(); 28 }); 29})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.