diff --git a/lms/static/sass/views/_program-marketing-page.scss b/lms/static/sass/views/_program-marketing-page.scss index aa8d2466eb..a0324d6b74 100644 --- a/lms/static/sass/views/_program-marketing-page.scss +++ b/lms/static/sass/views/_program-marketing-page.scss @@ -20,6 +20,11 @@ .btn { font-size: 20px; + font-weight: $font-weight-bold; + .original-price { + text-decoration: line-through; + font-weight: $font-weight-normal; + } } .btn, diff --git a/lms/templates/courseware/program_marketing.html b/lms/templates/courseware/program_marketing.html index 8fb399c41e..205d514e92 100644 --- a/lms/templates/courseware/program_marketing.html +++ b/lms/templates/courseware/program_marketing.html @@ -62,6 +62,8 @@ endorser_org = endorser_position.get('organization_name') or corporate_endorseme faqs = program['faq'] courses = program['courses'] instructors = program['instructors'] + full_program_price_format = '{0:.0f}' if program['full_program_price'].is_integer() else '{0:.2f}' + full_program_price = full_program_price_format.format(program['full_program_price']) %>
${program['subtitle']}
+ ## Note: Weird formatting to fix the inline spacing issue. % if program.get('is_learner_eligible_for_one_click_purchase'): - ${_('Purchase the Program')} + ${_('Purchase the Program (')}${Text(_('${oldPrice}')).format( + oldPrice=full_program_price_format.format(program['discount_data']['total_incl_tax_excl_discounts']) + )} + ${Text(_('${newPrice}')).format( + newPrice=full_program_price, + )} + + ${Text(_('{currency})')).format( + discount_value=full_program_price_format.format(program['discount_data']['discount_value']), + currency=program['discount_data']['currency'] + )} + + % else: + >${"${price})".format(price=full_program_price)} + + % endif % else: