Automattic / woocommerce-services

WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print USPS shipping labels.
GNU General Public License v2.0
108 stars 20 forks source link

NUX: Fix banner display on Edit Orders pages when using HPOS #2692

Closed waclawjacek closed 1 year ago

waclawjacek commented 1 year ago

Description

When HPOS is enabled (which has been the default for new sites since WC 8.2 release on Oct 10th, 2023), the admin screen IDs for "Edit Order" pages are different. This causes WCS&T's NUX banner to not show up. This applies to both the order listing and single order edit pages.

Steps to reproduce & screenshots/GIFs

Screenshot 2023-10-26 at 11 33 05
  1. Set up a fresh site. Install WCS&T and WC. Don't connect with Jetpack.
  2. Go to the Edit Order page (listing or single order page).
  3. If you're on HPOS, the banner won't show up without this PR.
  4. You can toggle HPOS usage in WC > Settings > Advanced > Features. You have to have order sync enabled on that page to be able to toggle this setting.

Checklist