PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

How to programmatically get product price

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

I need to programmatically display a product price given the product id and selected currency. Some prices are automatically calculated using rate value i gave it on the currencies table, and some products has fixed currencies.

+1 for getting the full and discount price

 

somthing like

get_product_full_price($product_id, $selected_currency);

get_product_discount _price($product_id, $selected_currency);

Hello

You can use this shortcode - https://currency-switcher.com/shortcode/woocs_price

OR use standard functions of the wc_product class to get prices