WooCommerce Currency Converter: the [woocs_converter] Shortcode
A WooCommerce currency converter and a currency switcher solve two different problems, and shops usually need both. The switcher changes the prices in your catalogue. The converter is a small calculator on the page: a visitor types an amount, picks two currencies and sees the result — without touching what your products cost.
FOX ships both. The converter is a shortcode, so it goes anywhere a shortcode goes: a page, a widget, a sidebar, a template.
Adding the currency converter
Drop this on any page:
[woocs_converter]
That is the whole setup. The converter picks up every currency you have already added in the plugin settings, uses the same exchange rates as the rest of the shop, and recalculates over AJAX as the visitor types — no page reload, no second request to an external service.
Attributes
- exclude — currency codes to leave out, comma separated. Useful when the shop trades in eight currencies but the converter should only offer the three your customers actually ask about.
- precision — how many decimals the result shows. Default is 2.
[woocs_converter exclude="GBP,AUD" precision=4]
Four decimals matter more often than it sounds: on low-value currencies a two-decimal result rounds away the difference the visitor came to check.
Where a converter earns its place
The switcher answers "what does this cost me". The converter answers "what is this number in my money" — and that question comes up in places a price switcher never reaches:
- Wholesale and B2B pages where the price list is a table, not a WooCommerce product.
- Shipping and customs pages, where a fee is quoted in one currency and the buyer budgets in another.
- Blog and landing pages that mention amounts in the base currency.
- Checkout support pages, where a customer wants to confirm what their bank will actually charge.
Converter and switcher on the same site
They share the same currency list and the same rates, so there is nothing to keep in sync. A typical layout puts the switcher in the header, where it changes the whole catalogue, and the converter on one or two informational pages, where it answers a question without changing anything.
If you want the current rate as plain text rather than a calculator, there are two smaller shortcodes: [woocs_rates] prints the rate table, and [woocs_get_sign_rate] prints a single rate inline.
Rates behind the converter
The converter never calls an exchange service itself. It reads the rates FOX already holds, which come from one of more than seven aggregators on the schedule you set, or from values you typed in by hand. That means the converter cannot drift away from your product prices — both read the same numbers.
It also means a floor and a ceiling set on a currency apply to the converter too, so a bad feed cannot produce an absurd result in front of a customer.
See the converter running on the demo site, or read the full attribute reference on the [woocs_converter] codex page.