Question and answer is powered by AnsPress.io
Someone help me please.
How can I get the product id in product details page using woocommerce?
Get the product id in product details page using woocommerce, follow the example code.
Try with this code:
<?php global $product; $id = $product->get_id(); echo $id; ?>