wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

On a self-hosted site with WooCommerce and Jetpack connection, Products tab does not work as expected when Secure Sign On is enabled

Open pehaa opened this issue 2 years ago • 6 comments

Quick summary

On a self-hosted site with WooCommerce and Jetpack connection, Products tab in the menu area redirects to the Products page in WP-Admin (/wp-admin/edit.php?post_type=product). However, when Secure Sign On is enabled, this is no longer the case. The Products tab points to https://wordpress.com/types/product/{site} page that displays the You need permission to manage this post type Ask your site administrator to grant you access notice.

Steps to reproduce

  1. Set up a self-hosted site with Jetpack connection and WooCommerce installed

  2. Visit the site in Calypso

  3. Try to access Products from the main menu (left sidebar)

  4. You will be redirected to your site's WP Admin > Products (/wp-admin/edit.php?post_type=product) Markup 2023-01-23 at 13 38 34

  5. Now, activate Secure Sign On (In your WP dashboard in Jetpack > Settings > Security > WordPress.com Login or in Calypso Settings > Security > WordPress.com log in

  6. Reload the browser in Calypso

  7. You will notice that the gridicons-external icon disappeared

  8. When you click the Products you will be pointed to https://wordpress.com/types/product/{site} page that displays You need permission to manage this post type Ask your site administrator to grant you access Markup 2023-01-23 at 13 40 55

What you expected to happen

The icon does not disappear and the user is redirected to their WP Admin > Products. In other words, I would expect that the experience does not change whether SSO is enabled or not. The notice is also confusing, it's displayed regardless if there are only one or multiple admins on the site.

What actually happened

User is confused. They are admin but don't have permission to edit/see products.

Context

Reported in 5863777-zd-woothemes

Platform (Simple, Atomic, or both?)

Self-hosted

Theme-specific issue?

No response

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

No but the platform is still usable

Workaround details

  • Clarify to the user that they should always log in to their WP admin in order to edit Products.
  • Disable SSO to remove the confusion

pehaa avatar Jan 23 '23 14:01 pehaa