Wp-calypso: Jetpack Search: Display new plans

Created on 4 Mar 2020  路  8Comments  路  Source: Automattic/wp-calypso

All of this should get hidden behind a feature flag initially i guess.

There are a number of places the new plans need to get displayed:

I started some of the work on this in https://github.com/Automattic/wp-calypso/pull/39857

I suspect we should break this up into smaller issues. Maybe after creating a bunch of constants.

Jetpack Search [Type] Task

Most helpful comment

@keoshi didn't expect you to be awake 馃槅

Thanks for the lead! I'll mess around with the code in that area.

All 8 comments

https://wordpress.com/plans/my-plan/example.com currently doesn't display any information about Jetpack Single Products. Do we intend to add something here? @gibrown @keoshi

Screen Shot 2020-03-17 at 3 01 06 PM

@keoshi didn't expect you to be awake 馃槅

Thanks for the lead! I'll mess around with the code in that area.

wordpress.com/plans/my-plan/gibrown.wpsandbox.me::main

It looks like implementing the interface for /plans/my-plan/ will have to wait until we can query the Search product purchases:

https://github.com/Automattic/wp-calypso/blob/9af6717b3285be28536cd8da68773af733312611/client/my-sites/plans/current-plan/purchases-listing.jsx#L252

@DavidRothstein, is my assumption here correct?

To check for UX/copy completeness :

the steps in the flow leading from the jetpack.com/pricing page (tested being logged in):

  • selecting a paid plan (non-Pro)
  • filling in the remote install url input form
  • JPC recognizes pre-selected plan and skims through the plans grid landing at /checkout with the annual purchase option. Side Q: there is no alternative path should users change their minds or want to explore monthly (but close the page)
    The JPS Solution is available in the /plans tab afterwards, but not presented anywhere in the above flow.

Intercepting this connection flow from /pricing may not be a goal as JPS has its dedicate landing page at jetpack.com/upgrade/search/ and own remote install redirect, but since it involves plans page in the process, flagging it here.

/cc @keoshi

@jsnmoon If you have a Jetpack Search subscription on your site, I think QuerySitePurchases would already return it. That endpoint just returns all the subscriptions for a site, so it should include Jetpack Search.

Trying to test it now, though, I wasn't actually able to add a Jetpack Search subscription to a site in the first place, either in Calypso or via the backend admin... in Calypso the shopping cart just seems to get emptied when you add it to the cart, and in the backend admin you get an error about it not being available for a Jetpack site. There may be something wrong with the way the product is set up. But once that is fixed and it is possible to add the subscription, I expect it to be returned from the purchases endpoint automatically.

Trying to test it now, though, I wasn't actually able to add a Jetpack Search subscription to a site in the first place, either in Calypso

Ah, I see that's actually one of the tasks already listed at the top of this issue :)

checkout page needs to work ala https://wordpress.com/checkout/gibrown.wpsandbox.me::test0/jetpack_backup_realtime

Not entirely sure why it doesn't work automatically when you replace jetpack_backup_realtime with jetpack_search, but like I said above it is probably just some small missing thing in the product setup.

I think this is all out of date, so closing

Was this page helpful?
0 / 5 - 0 ratings