woocommerce product get category code example
Example 1: woocommerce get product id
global $product;
$product->get_id();
Example 2: get product price woocommerce of specific id
$product = wc_get_product( $post_id );
$product->get_regular_price();
$product->get_sale_price();
$product->get_price();