Description
Changes proposed in this Pull Request
- Create the Upsell page that nudge users into buying Jetpack Backup or Jetpack Scan depending on what product they previously selected.
- Configurations allowed: from Jetpack Backup Daily to Jetpack Scan Daily, and from Jetpack Scan Daily to Jetpack Backup Daily. Real-time won’t be supported at this time because there is no real Jetpack Scan Real-time yet.
Implementation notes
- We don’t have the real discounted price for upsells so for now we are showing the standard price of the product. It’s expected that discounted prices of upsells will come from the API.
- We don’t have an official source for products and their allowed upsells. This PR hardcodes a matrix for that purpose but this data should come from an API.
Testing instructions
- Run this PR.
- Enable the Offer Reset AB experiment.
From Jetpack Backup Daily to Jetpack Scan Daily (monthly and yearly)
- Visit
http://calypso.localhost:3000/plans/:site/jetpack_backup_daily/annual/additions
- Visit
http://calypso.localhost:3000/plans/:site/jetpack_backup_daily_monthly/monthly/additions
From Jetpack Scan Daily to Jetpack Backup Daily (monthly and yearly)
- Visit
http://calypso.localhost:3000/plans/:site/jetpack_scan/annual/additions
- Visit
http://calypso.localhost:3000/plans/:site/jetpack_scan_monthly/monthly/additions
Fixes 1169247016322522-as-1189040767770459
Demo
Jetpack Scan + upsell Jetpack Backup Daily
Jetpack Backup Daily + upsell Jetpack Scan
Unfortunately, no screenshots were provided by the developer.