Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix showing/hiding cart alert
dominik-zeglen2bcff565ee99
diff --git a/saleor/static/js/components/cart.js b/saleor/static/js/components/cart.jsindex 3138b295db..70583987be 100644--- a/saleor/static/js/components/cart.js+++ b/saleor/static/js/components/cart.js@@ -86,7 +86,7 @@ export default $(document).ready((e) => {$.cookie('alert', 'true', {path: '/cart'});location.reload();} else {- $removeProductSuccess.removeClass('d-sm-none');+ $removeProductSuccess.removeClass('d-none');$(this).fadeOut();}} else {@@ -113,7 +113,7 @@ export default $(document).ready((e) => {$total.html(response.total);$cartBadge.html(response.cart.numItems);$cartDropdown.load(summaryLink);- $removeProductSuccess.removeClass('d-sm-none');+ $removeProductSuccess.removeClass('d-none');} else {$.cookie('alert', 'true', {path: '/cart'});location.reload();@@ -148,7 +148,7 @@ export default $(document).ready((e) => {$cartSubtotal.on('change', countrySelect, deliveryAjax);if ($.cookie('alert') === 'true') {- $removeProductSuccess.removeClass('d-sm-none');+ $removeProductSuccess.removeClass('d-none');$.cookie('alert', 'false', {path: '/cart'});}});diff --git a/templates/cart/index.html b/templates/cart/index.htmlindex 8a05da9724..740015c872 100644--- a/templates/cart/index.html+++ b/templates/cart/index.html@@ -15,7 +15,7 @@{% endblock breadcrumb %}{% block content %}-<div class="alert alert-success remove-product-alert">+<div class="alert alert-success remove-product-alert d-none">{% trans "Product has been removed from cart" context "Cart message" %}<button type="button" class="close close-msg" aria-hidden="true">×</button></div>