M
M
mylpavel2015-06-16 10:33:34
JavaScript
mylpavel, 2015-06-16 10:33:34

How to convert exchange rates in woocommerce?

There is a store on woocommerce prices in it in dollars. These prices need to be converted into rubles.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Proskurin, 2018-09-06
@Vlad_IT

Look carefully, something is wrong with you. Maybe there are no such elements, or they are added after the script is executed (dynamically). Here I have compiled according to your code, everything works.

A
Alex Ivanov, 2015-06-16
@mylpavel

Add filter for woocommerce_get_price
add_filter('woocommerce_get_price', 'cmw_custom_price', 100, 2);
function cmw_custom_price($price, $info)
{
$price = $price*50;
return $price;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question