Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #order #item #product #id
ADD COMMENT
Topic
Name
2+5 =