PHP filter to get currency prices
-
Hi,
We are running a popular product feed plugin and am trying to add Curcy compatibility in our plugin (https://www.ads-software.com/plugins/woo-product-feed-pro/). We suspect we might have find the proper filter in your plugin code to convert product prices from one currency to another. This is the piece of code we are testing:
$from_currency = “GBP”;
$product_data[‘wmc_price’] = apply_filters(‘wmc_get_price’, $product_data[‘price’], $from_currency);
It however does nothing with the product price, it is not returning the GBP price of a product, instead it just leaves it in the default EUR currency. Can you give us some pointers as to how to make this work?
- The topic ‘PHP filter to get currency prices’ is closed to new replies.