Answers for "get product name from order id in woocommerce"

PHP
6

woocommerce get product id

global $product;
$product->get_id();
Posted by: Guest on July-03-2020
0

woocommerce order item get product id

foreach ( $items as $item ) {
    $product_name = $item->get_name();
    $product_id = $item->get_product_id();
    $product_variation_id = $item->get_variation_id();
}
Posted by: Guest on September-01-2020

Code answers related to "get product name from order id in woocommerce"

Browse Popular Code Answers by Language