From 75ab69f1f2245194c2873bf946b382ec6cb89244 Mon Sep 17 00:00:00 2001 From: julianajlk Date: Wed, 17 Jul 2024 17:11:55 -0400 Subject: [PATCH] feat: Add waffle flag for First Purchase Discount override --- openedx/features/discounts/applicability.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openedx/features/discounts/applicability.py b/openedx/features/discounts/applicability.py index 1bb895f7f90f..dde4e152cb2f 100644 --- a/openedx/features/discounts/applicability.py +++ b/openedx/features/discounts/applicability.py @@ -28,6 +28,18 @@ from common.djangoapps.track import segment +# .. toggle_name: discounts.enable_first_purchase_discount_override +# .. toggle_implementation: WaffleFlag +# .. toggle_default: False +# .. toggle_description: Waffle flag to enable the First Purchase Discount to be overriden from +# EDXWELCOME/BIENVENIDOAEDX 15% discount to a new code with 30% discount. +# .. toggle_use_cases: temporary +# .. toggle_creation_date: 2024-07-18 +# .. toggle_target_removal_date: None +# .. toggle_tickets: REV-4097 +# .. toggle_warning: This temporary feature toggle does not have a target removal date. +FIRST_PURCHASE_DISCOUNT_OVERRIDE_FLAG = WaffleFlag('discounts.enable_first_purchase_discount_override', __name__) + # .. toggle_name: discounts.enable_discounting # .. toggle_implementation: WaffleFlag # .. toggle_default: False