Price variable for “WooCommerce Multi-Currency” plugin?
-
Dear Team,
I bought “WooCommerce Multi-Currency” from your store, and I would like to know what is the code that I need to use to display the price adapted to the new currency.
I am currently using _regular_price and not showing any currency.
Is it maybe “_price_html” the price taken by this plugin?
ThanksThis is my current code:
$price = get_post_meta( $post->ID, ‘_regular_price’, true );
if ( $price ) {
echo ‘Price: ‘ . $price;
}As I am aware that “_regular_price” is only getting the price without the currency, and I am not sure if using “get_price_html” would provide me with the correct price used in your “WooCommerce Multi-Currency” plugin.
Can you please guide me?
Thanks so much
- The topic ‘Price variable for “WooCommerce Multi-Currency” plugin?’ is closed to new replies.