New "Format Prices" option added to WooCommerce Importer plugin #4
EricBusch
started this conversation in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A new "Format Prices" option has been added to this admin screen: WordPress Admin Area > Product Sets > WC Importer in version 1.2.52 of the WooCommerce Importer plugin.
This option is useful if you import products with more than one currency code into your WooCommerce store.
For example, let's say you import some products which have a currency code of GBP and others which have a currency code of EUR.
In the past, you would select one format on the WooCommerce settings page to display all of your WooCommerce prices in. For example, you might set WooCommerce to display your prices in GBP. Therefore both your GBP and EUR prices would be formatted like this:
Now, when you set Format Prices to Yes, each price will be formatted with the currency symbol appropriate for the product's currency code.
So now your prices will be formatted properly:
As a side note, you can also modify the format of your prices. We've outlined how to do that in this documentation article.
If you do want to modify how prices are formatted just in the context of WooCommerce, the context is
woocommerce_get_price_html
.So if you want to change the thousands separator and decimal point for EUR prices in your WooCommerce store, you could use custom code like this:
If all of your products have the same currency code (ie. all products are EUR), we recommend leaving this option set to No.
You must be using the latest version of the Datafeedr API plugin and the Datafeedr Product Sets plugin in order to take advantage of this new feature.
Beta Was this translation helpful? Give feedback.
All reactions