Woocommerce – Get SKU in product single page?
Answered
How to get the SKU in my product single pages in Woocommerce?
Best answer
The following code should get the SKU:
<?php echo $product->get_sku(); ?>
If you do not have a reference to the product you should add the following line at the top of the file:
global $product;