woocommerce get product id
snippet in php

woocommerce get product id

user5695

global $product;
$product->get_id();