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 ...
As we've seen in other articles, get product info from $product object
This code is outdated for WooCommerce version 3+. You should use instead: add_action( 'woocommerce_thankyou' ...
Other examples might be the order or the cart pages. Once again, in here you don't really have a $product available, so you have to loop through the order/cart ...
If you use the get_id() method, you get your item ID which is 15 in your code. Get the product ID: The correct WC_Order_Item_Product method ...
The [products] shortcode allows you to display products by post ID, SKU, categories, attributes ...
Control how pre-order products are displayed using built-in settings for button text, product messages, and more. Display the time remaining until a product is ...
Note: Virtual products don't require shipping — an order with virtual products ...
Get. Let's begin with WC_Order's get_items() that returns all products in an order. But why? – order items are not only products, shipping and fee are also order ...
You can now display your WooCommerce products in a variety of ways – list view , order forms, product catalog, and more. Also, you will have the ability to ...