здесь  использую функцию
$('.buttons-buy button').on('click',function (e) {
		if ($(this).is('button')) {
			let default_val = +$(this).parent().find('input[name=quantity]').attr('value');
			let count = +$(this).parent().find('input[name=quantity]').val();
			let product_id = $(this).parent().find('input[name=product_id]').val();
			if ($(this).hasClass('quantity-minus')) {
				if ($(this).next('input').val() > default_val ) {
					count --;
				}
				$(this).next('input').val(count)
			}
			else if( $(this).hasClass('quantity-plus') ){
				count ++;
				$(this).prev('input').val(count)
			}
			else if ($(this).hasClass('add_product')) {
product_add( $(this).parents('.product') );
				$(this).parent().find('input[name=quantity]').val(default_val);
			}
		}
	});