Automattic / woocommerce-subscriptions-core

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

Orders List Table doesn't show the subscription custom columns when HPOS is enabled #469

Closed mattallan closed 10 months ago

mattallan commented 12 months ago

Describe the bug

On stores with HPOS enabled, the Orders List table no longer shows the custom "Subscription Relationship" columns:

image

In our WC_Subscriptions_Order class we are hooking onto manage_edit-shop_order_columns and manage_shop_order_posts_custom_column hooks to add these custom columns, but these only work in non-HPOS environments.

For HPOS we need to use the following hooks:

To Reproduce

  1. Enable HPOS
  2. Purchase a subscription product and process a renewal
  3. Visit the WooCommerce > Orders table and note that there's no columns for subscription relationships

Expected behavior

Actual behavior

Product impact

Additional context

EjayhanFernandes commented 12 months ago

Initially reported here: 6532020-zen