feat: add marketing url to subscription upsell (#32560)

This commit is contained in:
Nawfal Ahmed
2023-06-23 17:54:15 +05:00
committed by GitHub
parent ef0fa643f5
commit 80d151b404
7 changed files with 30 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ from openedx.core.djangolib.js_utils import (
<%static:webpack entry="ProgramListFactory">
ProgramListFactory({
marketingUrl: '${marketing_url | n, js_escaped_string}',
subscriptionsMarketingUrl: '${subscriptions_marketing_url | n, js_escaped_string}',
programsData: ${programs | n, dump_js_escaped_json},
programsSubscriptionData: ${programs_subscription_data | n, dump_js_escaped_json},
userProgress: ${progress | n, dump_js_escaped_json},

View File

@@ -11,7 +11,7 @@
{ minSubscriptionPrice, trialLength }
) %>
</p>
<a href="" class="js-subscription-upsell-cta btn-brand btn cta-primary view-button align-self-stretch">
<a href="<%- subscriptionsMarketingUrl %>" class="js-subscription-upsell-cta btn-brand btn cta-primary view-button align-self-stretch">
<span class="icon fa fa-search" aria-hidden="true"></span>
<span><%- gettext('Explore subscription options') %></span>
</a>