Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Delete product if input value equal to 0
weronka17ec2554fed9
diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.jsindex dcb63dac94..0ac22c2ccf 100644--- a/saleor/static/js/storefront.js+++ b/saleor/static/js/storefront.js@@ -259,8 +259,8 @@ $cartLine.each(function() {method: 'POST',data: {quantity: newQuantity},success: (response) => {- if (newQuantity === 0) {- if (response.cart.numLines === 0) {+ if (newQuantity == 0) {+ if (response.cart.numLines == 0) {$.cookie('alert', 'true', { path: '/cart' });location.reload();} else {