add discount percentage configuration

This commit is contained in:
Matthew Piatetsky
2019-10-22 16:40:04 -04:00
parent 6e0914ad5d
commit 86bb0cfa2c
7 changed files with 94 additions and 8 deletions

View File

@@ -216,7 +216,7 @@ class ChooseModeView(View):
)
if offer_banner_fragment:
context['offer_banner_fragment'] = offer_banner_fragment
discounted_price = "{:0.2f}".format(price_before_discount * ((100.0 - discount_percentage()) / 100))
discounted_price = "{:0.2f}".format(price_before_discount * ((100.0 - discount_percentage(course)) / 100))
context["min_price"] = discounted_price
context["price_before_discount"] = price_before_discount