Skip to content

Commit

Permalink
in cart; on product quantity update, change the value too. (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: Asad Akram <[email protected]>
  • Loading branch information
ourwarmhouse and Asad Akram committed Jan 23, 2023
1 parent 2bc7ff9 commit e78ea66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/javascripts/expressCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ $(document).ready(function (){
cartUpdate(qtyElement);
});


$(document).on('change', '.cart-product-quantity', function (e) {

cartUpdate(e.target);
});

$(document).on('click', '.btn-delete-from-cart', function(e){
deleteFromCart($(e.target));
});
Expand Down

0 comments on commit e78ea66

Please sign in to comment.