Question

I am able to display SKU in a single product page using Product Meta data but it looks like same method does not work on Order Conformation page. Is there any way to echo SKU in a order conformation page? I was able to echo product name by using <?php foreach($order->get_items() as $item) { echo $product_name = $item['name'];} ?> but it is not working for SKU.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top