This PR is continuation from Jetpack Offer Reset: Show product options in product description (daily or real-time).
Changes proposed in this Pull Request
This PR adds the text, “Available options: Real-Time and Daily” to the product description, IF:
- The product offers a real-time and daily option.
- and if the product is not already owned by the user.
- and if the product is not bundled in another plan.
Testing instructions
- Ensure your sandbox site does’t have any Jetpack plans/products purchased.
- Enable the Offer Reset Flow in A/B tests.
- Visit the Plans section.
Look at the description section in each of the Plan/Individual Product cards. Every product/plan that offers a “real-time” and “daily” option will have, “Available options: Real-Time or Daily.” appended to the description. In this case, “Jetpack Backup” and “Jetpack Security” with have the appended text because those are the only plans that offer real-time and daily options at this point.
Screenshots:
Next, purchase Jetpack Security, reload the plans page and you’ll no longer see the the appended text (“Available options: Real-Time or Daily.”) in both Jetpack Security and Jetpack Backup (because Backup is included with Security).
Next, remove Jetpack Security, and then purchase Jetpack Backup. Then reload the Plans page. You should see the appended text (“Available options: Real-Time or Daily.”) in Jetpack Security, but no longer see the appended text (“Available options: Real-Time or Daily.”) in the product description of Jetpack Backup (because you own it).
Unfortunately, no screenshots were provided by the developer.