diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index 79038613f3..384c34c354 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -64,6 +64,12 @@ async function plansPage(req, res) { res, 'plans-page-layout-v3' ) + + if (plansPageLayoutV3Assignment.variant === 'old-plans-page-annual') { + plansPageLayoutV3Assignment.variant = 'old-plans-page-annual-fixed' + res.locals.splitTestVariants['plans-page-layout-v3'] = + 'old-plans-page-annual-fixed' + } } catch (error) { logger.error( { err: error }, @@ -73,7 +79,7 @@ async function plansPage(req, res) { let currentView = 'monthly' if ( - plansPageLayoutV3Assignment.variant === 'old-plans-page-annual' || + plansPageLayoutV3Assignment.variant === 'old-plans-page-annual-fixed' || plansPageLayoutV3Assignment.variant === 'new-plans-page' ) { currentView = 'annual' diff --git a/services/web/app/views/subscriptions/plans-marketing.pug b/services/web/app/views/subscriptions/plans-marketing.pug index 5808e66053..38b33f4e52 100644 --- a/services/web/app/views/subscriptions/plans-marketing.pug +++ b/services/web/app/views/subscriptions/plans-marketing.pug @@ -63,7 +63,7 @@ block content h2 #{translate('compare_plan_features')} .row .col-md-6.col-md-offset-3 - if (plansPageLayoutV3Variant === 'old-plans-page-annual') + if (plansPageLayoutV3Variant === 'old-plans-page-annual-fixed') +plan_switch_annual_default('table') else +plan_switch('table') diff --git a/services/web/app/views/subscriptions/plans-marketing/_mixins.pug b/services/web/app/views/subscriptions/plans-marketing/_mixins.pug index 88e40b51dc..ee67dbb577 100644 --- a/services/web/app/views/subscriptions/plans-marketing/_mixins.pug +++ b/services/web/app/views/subscriptions/plans-marketing/_mixins.pug @@ -240,7 +240,7 @@ mixin allCardsAndControls(controlsRowSpaced, listLocation) - var location = listLocation ? 'card_' + listLocation : 'card' .row.top-switch(class=(controlsRowSpaced ? "row-spaced" : "")) .col-md-6.col-md-offset-3 - if (plansPageLayoutV3Variant === 'old-plans-page-annual') + if (plansPageLayoutV3Variant === 'old-plans-page-annual-fixed') +plan_switch_annual_default(location) else +plan_switch(location)