Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marketplace: Monthly / Annually component #57102

Closed
cpapazoglou opened this issue Oct 18, 2021 · 2 comments · Fixed by #59128 or #59764
Closed

Marketplace: Monthly / Annually component #57102

cpapazoglou opened this issue Oct 18, 2021 · 2 comments · Fixed by #59128 or #59764

Comments

@cpapazoglou
Copy link
Contributor

cpapazoglou commented Oct 18, 2021

What

A switcher component for selecting monthly / annually pricing

Why

The Marketplace will introduce paid plugins. Since we offer plans on monthly and annual basis we should also offer the plugins in the same basis.

How

  • Let's create a new component that interacts with the state so that it can be reused in multiple cases.
  • let’s make sure that selecting “Monthly” or “Annually” persists while navigating to plugins screens

Plugins Browser
SS 2021-11-25 at 15 02 05

Plugin Details
SS 2021-11-25 at 15 02 30

Designs: oU6nEIeiKSg8CayhEtgR6b-fi-6559%3A49583

@cpapazoglou cpapazoglou changed the title Marketplace: Montly / Annually component Marketplace: Monthly / Annually component Oct 18, 2021
@cpapazoglou cpapazoglou removed the [Type] Feature Request Feature requests label Oct 18, 2021
@cpapazoglou
Copy link
Contributor Author

cpapazoglou commented Oct 18, 2021

Let's see if we can reuse the component which already exists in plans page https://wordpress.com/plans and in new signups https://wordpress.com/new/plans-modal

@sarahcada
Copy link

let’s make sure that selecting “Monthly” or “Annually” persists while navigating to plugins screens

I'm reopening this since the selection doesn't seem to persist.

Steps to replicate: From Plugins > Add New, select Annual in the switcher component.
Expected: The price shown will be Annual.
Actual: The price shown is Monthly; switcher is back to monthly.

(That said, the selection from the plugin's screen will persist after clicking Purchase and activate.)

Screen Capture on 2022-01-04 at 14-02-27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment