Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

Marketplace Installation: endless loop between Checkout and plan upgrade CTA page if Business plan purchase is declined with a third-party theme. #77532

Open worldomonation opened 1 year ago

worldomonation commented 1 year ago

Quick summary

If a user declines the Business plan upgrade CTA after attempting to install a marketplace theme, they can get stuck in the Marketplace Installation -> Secure Checkout loop.

Steps to reproduce

  1. log in as Free user.
  2. navigate to Appearance > Themes.
  3. search for the "Modern" theme.
  4. click to install.
  5. Marketplace Installation screen with a CTA to upgrade plan is shown. Click on the CTA.
  6. user is redirected to Secure Checkout.
  7. decline the purchase by clicking on the x on top left. Clear or leave items in cart, doesn't matter.

What you expected to happen

User is taken back to the Modern theme installation screen (https://wordpress.com/theme/modern/)

What actually happened

Redirected to the Marketplace Installation page with the CTA (same as step 5).

image

https://github.com/Automattic/wp-calypso/assets/6549265/44544da6-21a8-4620-acfc-82e785c46c11

Impact

Most (> 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

No response

Logs or notes

This may be intended behavior but I don't particularly like that there's no easy way out of the loop.

john-legg commented 1 year ago

šŸ“Œ REPRODUCTION RESULTS

Tested on Simple ā€“ Replicated Tested on Atomic ā€“ Could not replicate Replicable outside of Dotcom ā€“ No

šŸ“Œ FINDINGS/SCREENSHOTS/VIDEO

I was able to replicate the issue on Simple plans (Free, Personal, and Premium) using Safari, Firefox, and Chrome. I was also able to confirm this happens with other community themes and not with Automattic themes.

https://github.com/Automattic/wp-calypso/assets/96805492/e92dd87e-605c-4b52-b3ce-33532c89b041

I also tested installing and activating the Modern theme on Atomic and self-hosted sites just to make sure the theme itself was working and tested other Business plan CTA flows to make sure the upgrade path wasn't broken. Everything seemed fine in those instances.

šŸ“Œ ACTIONS

Assigned to MarTech column (@Automattic/martech)