it worked. Just modified it global $woocommerce, $post; $order = new WC_Order ($post->ID); //to escape # from order id $order_id ...
ids – Will display products based on a comma-separated list of Post IDs. skus – Will display ...
$user_id = $order->get_user_id(); // Get the costumer ID $user
Or “How can I get the order items“? Or maybe the order ID, customer ID, billing info, payment method, total refunds and so on… hopefully this ...
Note that this status may not show immediately and instead show as Pending
WooCommerce 3.0+. you can get the order items of an order by $order = wc_get_order( $order_id ); $items = $order->get_items();. then if you loop through the ...
Once again, in here you don't really have a $product available, so you have to loop through the order/cart items and “get” it. After that, you can then calculate and ...
There are several reasons you might want to get all WooCommerce
If you have access to the order ID or order object, you can easily get the sequential order number based on WooCommerce core functions. $order = wc_get_order( ...
Plugin URI: http://www.remicorson.com/easily-find-woocommerce-order-id/. * Description: Adds a new columns to order list page to display order IDs. * Version : ...