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.
19 lines
493 B
19 lines
493 B
(function($) {
|
|
woodmartThemeModule.cartQuantity = function() {
|
|
var timeout;
|
|
|
|
woodmartThemeModule.$document.on('change input', '.woocommerce-cart-form__cart-item .quantity .qty', function(e) {
|
|
var $input = $(this);
|
|
|
|
clearTimeout(timeout);
|
|
|
|
timeout = setTimeout(function() {
|
|
$input.parents('.woocommerce-cart-form').find('button[name=update_cart]').trigger('click');
|
|
}, 500);
|
|
});
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
woodmartThemeModule.cartQuantity();
|
|
});
|
|
})(jQuery);
|
|
|