Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
81 stars 29 forks source link

[HPOS]: Missing compatibility for `orders_by_type_query` filter box in order listing screen. #496

Closed vedanshujain closed 9 months ago

vedanshujain commented 10 months ago

Description

When HPOS is active, looks like we don't show the order type filter box on the admin order list screen. Basically, these two functions needs to also use the HPOS hooks so we display these filter boxes when HPOS is active. I think we can use the woocommerce_order_list_table_restrict_manage_orders to hook restrict_manage_subscriptions and then perhaps hook the orders_by_type_query to woocommerce_order_list_table_prepare_items_query_args.

Testing instructions

  1. Set HPOS to authoritative.
  2. Go to orders admin list view.
  3. See that orders type filter box is not present.

Product impact

Dev notes

Additional context

MariaChek commented 9 months ago

We had a report about this in 6788276-zen. Do we have any estimation about when we'll look into this? Thanks!

a-danae commented 9 months ago

Hey @MariaChek! The fix for this was just merged. It should be included in the upcoming versions of WooCommerce Subscriptions.