diff --git a/enterprise/admin/forms.py b/enterprise/admin/forms.py index fd076aa4d4..ffa6b16136 100644 --- a/enterprise/admin/forms.py +++ b/enterprise/admin/forms.py @@ -395,6 +395,7 @@ class Meta: "enable_audit_data_reporting", "replace_sensitive_sso_username", "hide_course_original_price", + "hide_course_price_when_zero", "enable_portal_code_management_screen", "enable_portal_subscription_management_screen", "enable_learner_portal", diff --git a/enterprise/migrations/0198_hide_course_price_when_zero.py b/enterprise/migrations/0198_hide_course_price_when_zero.py new file mode 100644 index 0000000000..d1162bd27d --- /dev/null +++ b/enterprise/migrations/0198_hide_course_price_when_zero.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.23 on 2023-12-08 05:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('enterprise', '0197_auto_20231130_2239'), + ] + + operations = [ + migrations.AddField( + model_name='enterprisecustomer', + name='hide_course_price_when_zero', + field=models.BooleanField(default=False, help_text='Specify whether course cost should be hidden in the landing page when the final price is zero.'), + ), + migrations.AddField( + model_name='historicalenterprisecustomer', + name='hide_course_price_when_zero', + field=models.BooleanField(default=False, help_text='Specify whether course cost should be hidden in the landing page when the final price is zero.'), + ), + ] diff --git a/enterprise/models.py b/enterprise/models.py index 4ad711cee8..8180e033fb 100644 --- a/enterprise/models.py +++ b/enterprise/models.py @@ -472,6 +472,11 @@ class Meta: help_text=_("Email address that will receive learner replies to automated edX emails.") ) + hide_course_price_when_zero = models.BooleanField( + default=False, + help_text=_("Specify whether course cost should be hidden in the landing page when the final price is zero.") + ) + enable_generation_of_api_credentials = models.BooleanField( verbose_name="Allow generation of API credentials", default=False, diff --git a/enterprise/templates/enterprise/enterprise_course_enrollment_page.html b/enterprise/templates/enterprise/enterprise_course_enrollment_page.html index 1d4a777bdf..efb644a519 100644 --- a/enterprise/templates/enterprise/enterprise_course_enrollment_page.html +++ b/enterprise/templates/enterprise/enterprise_course_enrollment_page.html @@ -77,19 +77,21 @@

{{ confirmation_text }}

diff --git a/enterprise/templates/enterprise/templatetags/course_modal.html b/enterprise/templates/enterprise/templatetags/course_modal.html index 41e6f694e0..bc7965b9f3 100644 --- a/enterprise/templates/enterprise/templatetags/course_modal.html +++ b/enterprise/templates/enterprise/templatetags/course_modal.html @@ -25,7 +25,7 @@

{{ course_title