Hello
Thanks for reply
I tried this method as you specified, but its not working.
I have fetch the price amount in single product page with this code :
// define the woocommerce_before_add_to_cart_form callback
function action_woocommerce_before_add_to_cart_form( ) {
// make action magic happen here…
global $post, $product;
$_product = wc_get_product( $product_id );
?>
<h3 class=”tm-epo-field-label” style=”color: #373737; font-size: 18px; line-height: 25px; font-weight: bold;”><?php echo the_title(); ?> <span style=”text-align: right;” class=”single-pro-custom-price”><?php echo $product->get_price_html(); ?></span></h3>
<?php
};
// add the action
add_action( ‘woocommerce_before_add_to_cart_form’, ‘action_woocommerce_before_add_to_cart_form’, 10, 0 );
I am getting only USD for all country.Please let us know the issue and guide me to solve this.