Woocommerce custom calculation function

2018-06-24 18:31:35

i need some help to add one function in my functions.php.

I think is simple but can't figure how.

Funtion:

$price our $sale_price in native currency

and multiply to a value in $some_currency_exchange (output a integer)

basic

$price * $some_currency_exchange_rate

Thank you