-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Update Payments menu item display and linking behavior #51541
Conversation
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
Size Change: 0 B Total Size: 2.38 MB |
… extended task list also
* Minor cleanup * refact: Rename must_be_visible to is_incentive_visible for clarity * refact: Rename register_payments_welcome_page to register_menu_and_page for clarity * Don't show the incentive page if the user can't manage WC * Introduce menu item when no incentive * Don't recommend additional gateways when WCPay is present * Render gateway suggestions on the WCPay task page, also * Add changelog entry * Remove short array syntax * Lint fixes * Simplify Payments task view logic * Simplify WooPayments task view logic * Improve WooPayments task complete logic * WooPayments can't be connected or onboarded if it is not active * refact: Rename private static method * Improve logic to determine the Payments task slug by factoring in the extended task list also * docs: Add details about our use of the Payments task logic * Add type hint * Do not recommend offline methods when WooPayments is supported * On suggestion enablement redirect to the same task page * Lint fixes * test: Fix unit tests * Maintain deprecated navigation logic
* Update Payments menu item display and linking behavior (#51541) * Minor cleanup * refact: Rename must_be_visible to is_incentive_visible for clarity * refact: Rename register_payments_welcome_page to register_menu_and_page for clarity * Don't show the incentive page if the user can't manage WC * Introduce menu item when no incentive * Don't recommend additional gateways when WCPay is present * Render gateway suggestions on the WCPay task page, also * Add changelog entry * Remove short array syntax * Lint fixes * Simplify Payments task view logic * Simplify WooPayments task view logic * Improve WooPayments task complete logic * WooPayments can't be connected or onboarded if it is not active * refact: Rename private static method * Improve logic to determine the Payments task slug by factoring in the extended task list also * docs: Add details about our use of the Payments task logic * Add type hint * Do not recommend offline methods when WooPayments is supported * On suggestion enablement redirect to the same task page * Lint fixes * test: Fix unit tests * Maintain deprecated navigation logic * Prep for cherry pick 51541 --------- Co-authored-by: Vlad Olaru <[email protected]> Co-authored-by: WooCommerce Bot <[email protected]>
It appears this was included in 9.4.1. It's broken. I now have a constant Payments menu item with an orange bubble. Clicking it shows a blank page. If I enable a payment method from the regular settings area, the orange bubble goes away on the menu item, but the page is still blank when I click it. Why was this added? WooCommerce already has 4 menu items in the admin section. I don't really want another one to clutter things up. There probably should be a way to remove this easily, once it's fixed. |
I assume it is just a classic case of Automattic wanting to upsell something. Fun. |
I understand then wanting to upsell something and make money. I'm fine with that. There just needs to be a way to remove this menu item once I dismiss the task. That and it needed more thorough testing I guess. |
Same here. This "Payments" tab appears even though I don't have WooPayments enabled. Clicking it takes me to a blank page. I would like an option to remove this. |
This PR either needs to be reversed or a fix put in place ASAP, to remove the extra |
Awful that you can’t dismiss this WooPayments page as I just the official Woo Stripe for payments and now there’s this extra menu for no reason but “advertising” Using the below hides the Payments menu - however CSS to hide something that shouldn't be there in the first place!
This needs sorting ASAP! |
@maddisondesigns, could you help me with some details on how you are testing this and getting the blank page? An SSR of the test store would also come in handy. Thank you. |
This feels like such an odd change and the issue it closes doesn't mention anything about why it was needed. Is the purpose simply to signpost the WooPayments service offered by Woo? There are more people posting about the page being blank at https://wordpress.org/support/topic/payments-menu-after-upgrading-to-9-4-1-empty-page/ too |
This really shouldn't appear as a top-level menu item in WordPress. Payment integrations aren't something that is frequently visited. Compare to other top-level entries:
But Payments? Why? Who is changing out payment providers weekly? I think we know why, which would be what @dcx15 implied - it's an advertisement decision, not a usage-based decision. |
@vladolaru All I'm doing is clicking on the Payments top-level menu item that has appeared since the most recent update. Here's a (very short) screencast showing that the page is blank after clicking on the menu item. This is on a live site, but I've also tested this on a couple of local development sites, and the exact same thing happens. WC.Payments.Blank.Screen.-.2024-11-15.mp4And no, there was no |
@vladolaru As mentioned over in this issue #52812, this "fix" that has been merged, has still not actually fixed the issue! I'm still seeing a Payments menu item in my dashboard, with WooCommerce 9.4.2 Instead of seeing a blank page when I click on it though, it now just redirects me to the Payments Tab in the WC Settings. Screencast: https://share.zight.com/P8uKZvOP I'm seeing the same thing on multiple sites. This whole menu item needs to be completely removed from the Dashboard! |
Submission Review Guidelines:
Changes proposed in this Pull Request:
We detach the Payments top-level menu item from the presence of an active WooPayments incentive:
Additionally, we remove the recommended treatment of PSP suggestions when WooPayments is recommended.
Here is a recording of the new behavior on a fresh JurassicNinja site:

Closes #51111
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
/wp-admin/admin.php?page=wc-admin&task=payments
URL):wp-admin/admin.php?page=wc-admin&task=payments
URL)wp-admin/admin.php?page=wc-admin&task=woocommerce-payments
URL). WooPayments is present, and there is no recommended badge for the gateway in the "Other payment providers" section below:Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment