Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
space setting
Gursimran Singhc3208b29fc62
diff --git a/saleor/discount/models.py b/saleor/discount/models.pyindex f9d3cdf620..e64beebd55 100644--- a/saleor/discount/models.py+++ b/saleor/discount/models.py@@ -179,8 +179,7 @@ class Voucher(models.Model):limit = self.limit if self.limit is not None else valueif value < limit:msg = pgettext(- 'Voucher not applicable',- 'This offer is only valid for orders over %(amount)s.')+ 'Voucher not applicable', 'This offer is only valid for orders over %(amount)s.')raise NotApplicable(msg % {'amount': net(limit)})def get_discount_for_checkout(self, checkout):@@ -306,8 +305,7 @@ class Sale(models.Model):return self.get_discount()raise NotApplicable(pgettext(- 'Voucher not applicable',- 'Discount not applicable for this product'))+ 'Voucher not applicable', 'Discount not applicable for this product'))def get_product_discounts(product, discounts, **kwargs):