Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Store subclassess of variants in cart
Marcin Gębalaafed7362e607
diff --git a/saleor/cart/__init__.py b/saleor/cart/__init__.pyindex 63d4b463f3..f9e6567b8b 100755--- a/saleor/cart/__init__.py+++ b/saleor/cart/__init__.py@@ -65,7 +65,7 @@ class Cart(cart.Cart):# TODO: Provide error messagecontinueelse:- variant = product.variants.get(pk=item.data['variant_id'])+ variant = product.variants.get_subclass(pk=item.data['variant_id'])quantity = item.quantitycart.add(variant, quantity=quantity, check_quantity=False,skip_session_cart=True)