remove discount banner from track selection

This commit is contained in:
Matthew Piatetsky
2019-11-08 11:29:59 -05:00
parent c5f03adb0e
commit b0c9662b51
7 changed files with 49 additions and 67 deletions

View File

@@ -211,15 +211,6 @@ class ChooseModeView(View):
context["verified_name"] = verified_mode.name
context["verified_description"] = verified_mode.description
offer_banner_fragment = get_first_purchase_offer_banner_fragment(
request.user, course
)
if offer_banner_fragment:
context['offer_banner_fragment'] = offer_banner_fragment
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
if verified_mode.sku:
context["use_ecommerce_payment_flow"] = ecommerce_service.is_enabled(request.user)
context["ecommerce_payment_page"] = ecommerce_service.payment_page_url()