Skip to content

Commit

Permalink
Always refresh the cart after changes
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Sep 17, 2021
1 parent 6abaae4 commit 174f473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/components/Cart/Cart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
qty: item.qty
}
})
.then((response) => this.refreshCart())
.catch((error) => Notify(error.response.data.message, 'error'))
.then(() => this.refreshCart())
},
remove(item) {
this.magentoCart('delete', 'items/' + item.item_id)
.then((response) => {
this.refreshCart()
Notify(item.name + ' ' + window.config.translations.cart.remove, 'info')
})
.catch((error) => Notify(error.response.data.message, 'error'))
.then(() => this.refreshCart())
},
}
}
Expand Down

0 comments on commit 174f473

Please sign in to comment.