Skip to content

Commit

Permalink
Merge pull request PrestaShop#8142 from maximebiloe/fix-quantity-cart
Browse files Browse the repository at this point in the history
Fix the price update on quantity change on cart
  • Loading branch information
aleeks authored Jul 17, 2017
2 parents 4a8a359 + 182822d commit 0baefbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions themes/classic/_dev/js/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,13 @@ $(document).ready(() => {
$target.val(resp.quantity);

var dataset;
if ($target) {
if ($target && $target.dataset) {
dataset = $target.dataset;
} else {
dataset = null;
dataset = resp;
}


// Refresh cart preview
prestashop.emit('updateCart', {
reason: dataset
Expand Down
2 changes: 1 addition & 1 deletion themes/classic/assets/js/theme.js

Large diffs are not rendered by default.

0 comments on commit 0baefbe

Please sign in to comment.