You could try first with your approach " new WC_Order( $order_id ); ", this way: function destinationStep( $order_id ) global $woocommerce; ...
Order item class. Implemented by classes using the same CRUD(s) pattern. Interfaces, Classes and Traits.
Add Below Code in Your Theme function.php function action_woocommerce_admin_order_item_headers( ) { ?>
The WC_Product method get_category() doesn't exist and I remember you that you can have many product categories set for a product.
Order item product class. Implemented by classes using the same CRUD(s) pattern. Table of Contents. $cache_group ...
PHP Snippet: Check if Product Category is in the Order – WooCommerce
Cart Line Item Quantity: Quantities are based on the individual cart item.
This will add more order notification recipients by order item categories. You can notify the different people on orders received on the base of the o …
Since the question is tagged woocommerce, i'm assuming that it's a product CPT ... out - for instance - the categories names, you need the category term-object.
Storefront by default displays product category images on the homepage template. Categories can also be reordered by dragging and dropping – this order is ...