Prices format
-
Hi
As my site is using multiple currencies, I have a small piece of code that adds currency code (AUD, USD, etc..) to the price by hooking into ‘woocommerce_price_format’ filter. This is called from wc_price() function. This function is normally used to generate HTML version of the price.
The issue I have is that plugin using this wc_price() and currency code makes its way into the feed. Price appears as “$100 AUD”, for example. I think, for the feed generation purposes, get_price() function of the WC_Product object has to be called.
In any case, any ideas how to get around this conflict?
The topic ‘Prices format’ is closed to new replies.
