Its my first time that I'm using woocommerce and I'm having some issue on my cart page when I added more than 1 product and increase or decrease any product it will increase quantity of all products.
For example : I've added product a with quantity 2 and product b with quantity 7
if I increase product b to 8 then product a quantity will also increased to 8
Code :
<script>
jQuery('.plus').on('click',function(e){
var val = parseInt(jQuery('input[title="Qty"]').val());
jQuery('input[title="Qty"]').val( val+1 );
});
jQuery('.minus').on('click',function(e){
var val = parseInt(jQuery('input[title="Qty"]').val());
if(val !== 0){
jQuery('input[title="Qty"]').val( val-1 );
} });
</script>
And one more thing price is remains same even if I add increase product or decrease
HTML output : goo.gl/h3w4IQ
Actual cart page : goo.gl/9ynStK
Please let me know why this jQuery code not working and what to do to increase / decrease price also as per product quantity.