Add support for WooCommerce HPOS
-
With plugin active, go to WooCommerce > Settings > Advanced > Features. Under “Experimental Features” there’s an option for “High-Performance order storage (COT)” but it’s grayed out and cites this plugin:
This feature shouldn’t be enabled, the Admin Bar Addition for WooCommerce plugin is active and isn’t compatible with it. Manage incompatible plugins
Assuming this plugin isn’t interacting with Orders much, the only thing I can think that needs updating would be the link in the toolbar nodes to the orders
`
'orders' => array( 'title' => __( 'Orders', 'woocommerce' ), 'href' => admin_url( 'edit.php?post_type=shop_order' ), 'nodes' => array( 'orders' => array( 'title' => __( 'Orders', 'woocommerce' ), 'href' => admin_url( 'edit.php?post_type=shop_order' ), ), 'add-order' => array( 'title' => __( 'Add order', 'woocommerce' ), 'href' => admin_url( 'post-new.php?post_type=shop_order' ), ), 'customers' => array( 'title' => __( 'Customers', 'woocommerce' ), 'href' => admin_url( 'users.php?role=customer' ), ), ), ),So the admin urls
edit.php?post_type=shop_order
needs to beadmin.php?page=wc-orders
when HPOS is enabled.Here’s an update to the core class that should enable HPOS compatibility:
https://pastebin.com/uRYbCwk0
- The topic ‘Add support for WooCommerce HPOS’ is closed to new replies.