Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Keep in cart products with discounted prices

Adam Bogdal6350ba794dd7
diff --git a/saleor/cart/__init__.py b/saleor/cart/__init__.py
index df2c53ce62..9a73347631 100755
--- a/saleor/cart/__init__.py
+++ b/saleor/cart/__init__.py
@@ -69,7 +69,7 @@ class Cart(cart.Cart):
'Your cart (%(cart_count)s)') % {'cart_count': self.count()}
def get_data_for_product(self, variant):
- variant_price = variant.get_price_per_item()
+ variant_price = variant.get_price_per_item(discounts=self.discounts)
variant_data = {
'product_slug': variant.product.get_slug(),
'product_id': variant.product.pk,