woocommerce product price based on quantity range code example
Example 1: how to get woocommerce product price
$_product->get_regular_price();
$_product->get_sale_price();
$_product->get_price();
Example 2: woocommerce get variation price range
<?php
global $post;
// Get the WC_Product_Variable instance Object
$product = wc_get_product( $post->ID ); // Works for any product type
// Displaying the formatted "Min" - "Max" price range
echo $product->get_price_html();
?>