Allow different currencies to be quickly previewed when viewing the plans pages.
Related discussion: p1706746873917899-slack-CV2TX2PAN.
Why
We often need to check different currencies on /plans/:site. For example, testing the changes in https://github.com/Automattic/wp-calypso/pull/86860 required switching the currency to INR. We can currently do this by visiting the store admin ie. /wp-admin/network/admin.php?page=store-admin:
Having the ability to quickly change the currency would save time, particularly when previewing multiple currencies.
What
Allow different currencies to be quickly previewed when viewing the plans pages.
Related discussion: p1706746873917899-slack-CV2TX2PAN.
Why
We often need to check different currencies on
/plans/:site
. For example, testing the changes in https://github.com/Automattic/wp-calypso/pull/86860 required switching the currency toINR
. We can currently do this by visiting the store admin ie./wp-admin/network/admin.php?page=store-admin
:Having the ability to quickly change the currency would save time, particularly when previewing multiple currencies.
How
Add support for passing a
?currency
URL param when viewing/plans/:site
. The API was updated to support this URL param here: https://github.com/Automattic/martech/issues/2688