Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add ability to clear cart
Adam Bogdal2ad16c44adb2
diff --git a/saleor/cart/__init__.py b/saleor/cart/__init__.pyindex 097bf23ba3..9b26604240 100755--- a/saleor/cart/__init__.py+++ b/saleor/cart/__init__.py@@ -48,3 +48,6 @@ class Cart(cart.Cart):return pgettext('Shopping cart','Your cart (%(cart_count)s)') % {'cart_count': self.count()}++ def clear(self):+ self._state = []