Back

VibeFox Currency Switcher — Help

Requirements

WordPress: 6.0 or later.

WooCommerce: 7.0 or later, installed and active. The plugin refuses to activate without it.

PHP: 8.0 or later.

Exchange rates: the European Central Bank, National Bank of Poland, Central Bank of Russia and Bank of England are free and need no key. Fixer.io, Open Exchange Rates, CurrencyLayer, ExchangeRate-API, FreeCurrencyAPI, Wise and Xe.com need an API key from that service; the settings page links to their sign-up pages.

Payment methods: the payment gateway receives the order total in the order currency, so your payment provider must accept that currency.

VibeFox license key: bought on vibefox.net. One key works on one domain.

Installation

1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_currency_switcher folder to /wp-content/plugins/ by FTP.

2. Click Activate. WordPress opens VF Currency Switcher > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).

3. Once the key is active, the plugin adds common currencies (USD, EUR, GBP, JPY, CHF, PLN, CAD, AUD), all switched off, fetches their rates from the European Central Bank and schedules a daily rate update.

4. The menu VF Currency Switcher appears in the admin with Currencies, Analytics and Settings. The Plugins page also has Settings and Currencies links under the plugin name. The screens are available to users who can manage WooCommerce.

5. On VF Currency Switcher > Currencies switch on the currencies you sell in, or add others with Add currency. Click a currency name to set its markup, rounding and price ending.

6. In VF Currency Switcher > Settings choose the rate provider and update interval, the switcher look, the checkout currency and the payment method rules.

7. Show the switcher with the shortcode [vfw_cs_switcher], the Currency Switcher widget or Add to a menu (see Switcher).

Currencies

VF Currency Switcher > Currencies shows the store currency, the number of active currencies and the primary rate provider. The store (base) currency is the one set in WooCommerce > Settings > General: all prices are entered in it and converted by the exchange rates. Its rate is always 1, it is always active and can not be deleted, and its number format comes from the WooCommerce settings.

Add currency: choose an ISO 4217 currency in Select a currency… and click Add. The plugin asks the rate providers for its rate at once. If no provider publishes it, the currency is added with no rate.

Update rates now: fetches all rates immediately. Rate settings opens the exchange rate settings.

The list shows for each currency the Active switch, the name and flag, a format example, the exchange rate (with the labels fixed, no rate or the rate with markup) and the rounding. Drag rows to change the order in the switcher. A currency without a rate can not be switched on. Delete removes a currency after confirmation; orders already placed in it are not affected.

Edit currency (click the currency name):

Display

Name: the name shown to customers, per language. Empty: the WooCommerce name of the currency in the visitor's language.

Flag code: the flag shown in the switchers.

Symbol and Custom symbol (optional): the currency symbol; a custom symbol replaces the standard one.

Symbol position: Left ($99), Right (99$), Left with space ($ 99) or Right with space (99 $).

Decimals, Thousand separator, Decimal separator: the number format of the currency. A space is accepted as the thousand separator.

Exchange rate

Rate for 1 EUR (your store currency): how many units of this currency one unit of the store currency is worth. A comma or a point can be used. A rate changed by hand is saved in the rate history.

Fixed rate — not updated automatically: keeps your rate; automatic updates skip this currency.

Markup, % of the rate and Markup, added to the rate: increase the rate used for product prices, for example to cover conversion fees.

Price rounding

Round to: Currency decimals (default), 0.05, 0.10, 0.25, 0.50, 1, 5, 10 or 100.

Direction: Nearest, Up or Down.

Price ending: None, .99, .95 or .00.

Preview: shows how an amount will look. Only product prices are rounded. With an ending, the price is rounded to a whole step (at least 1) in the chosen direction and the ending is applied: 12.34 → up → 13 → 12.99. Prices are converted with the rate plus markup, then rounded by the currency rules. Shipping, fees and fixed coupons are converted by the rate only.

Configuration

Settings are on VF Currency Switcher > Settings. The page has tabs on the left. Click Save Changes to save.

General

Enable currency switching: default on. Off: the shop works in the store currency only, and switchers are hidden.

The page shows the store (base) currency and a link to the Currencies screen.

Fixed prices per currency: default off. Adds regular and sale price fields for every active currency to the product and variation editor (see Fixed prices).

Exchange Rates

Primary provider: where rates come from. Default: European Central Bank (ECB). Options: European Central Bank (ECB), National Bank of Poland (NBP), Central Bank of Russia (CBR) and Bank of England — free, no key; Fixer.io, Open Exchange Rates, CurrencyLayer, ExchangeRate-API, FreeCurrencyAPI, Wise (TransferWise) and Xe.com — API key.

Fallback provider: used when the primary provider fails or does not publish a currency. Default: National Bank of Poland (NBP). A currency missing at the primary provider is taken from the fallback.

Reject rate jumps above, %: protection against a broken feed. An automatic rate that differs from the previous one by more than this is not saved: the old rate stays and an error e-mail is sent. 0 = no check. Default: 50.

E-mail after every update: default off.

E-mail on update problems: sent to the site admin e-mail, at most once in 12 hours. Default: on.

API keys (only for providers that need them)

Fixer.io, Open Exchange Rates (App ID), CurrencyLayer, ExchangeRate-API, FreeCurrencyAPI, Wise (API token), Xe.com account ID and Xe.com API key: enter the key of the provider you use. Each field links to the page where you get the key. Rates are never saved from a provider without a key.

Geolocation

Currency by visitor country: default off. On the first visit the currency of the visitor's country is selected, if it is active. The visitor can always switch, and the choice is remembered. For logged-in customers the country of their saved address is used. Search engine bots are skipped.

Country detection:

WooCommerce only (MaxMind database / CDN country header) — no external requests: default. WooCommerce reads the country from Cloudflare or hosting headers, or from its MaxMind database (WooCommerce > Settings > Integration > MaxMind).
WooCommerce, then ip-api.com (visitor IP is sent to ip-api.com)
WooCommerce, then geoPlugin (visitor IP is sent to geoplugin.net)

External services are called only if you choose them; mention them in your privacy policy.

Switcher

Switcher type: the default type of the shortcode and PHP function: Dropdown (default), Buttons, Inline links or Minimal (flag + list).

Label format: Code and symbol — USD ($) (default), Symbol — $, Code — USD or Name — US Dollar.

Show flags: default on.

After switching:

Reload the page (recommended): default.
Update product prices and mini-cart without reload: only product prices and cart fragments are refreshed; cart, checkout, product and account pages always reload. Other amounts, for example a sidebar products widget, change on the next page view.

Add to a menu: default off. Adds the switcher as the first or last item of a navigation menu, in classic menus and in the Navigation block of block themes. With a page builder header (for example the Woodmart header builder) you can also place the shortcode in a header HTML block or text element.

Menu location: All menus (default) or one menu location of your theme.

Look in the menu: Dropdown (compact) (default), Flag with a list or All currencies in a row.

Position in the menu: First item or Last item (default).

Custom CSS: loaded together with the switcher styles. CSS variables: --vfw-cs-primary, --vfw-cs-bg, --vfw-cs-text, --vfw-cs-border, --vfw-cs-radius, --vfw-cs-font-size.

Checkout

Checkout currency: the order is created and paid in this currency.

The currency chosen by the customer: default.
Always one currency: the currency in Checkout in. The cart keeps the customer's currency; only the checkout and the order use the forced one.
Currency of the billing country: uses the country to currency map. If the currency of the country is not active, the chosen currency is used.

Checkout in: for Always one currency. Must be the store currency or an active currency.

Tell the customer: default on. A notice on the checkout page when the order currency differs from the one the customer chose: "Your order will be charged in …".

Show total in the store currency: default off. Adds an "Approx. in EUR" row (your store currency) under the order total of the classic checkout.

Payment methods per currency

One field per enabled payment method. Leave it empty (All currencies) to offer the method in every currency; otherwise it is offered only when the order currency is one of the listed ones. Check which currencies your payment provider accepts.

Cookie & Cache

Remember the choice, days: the lifetime of the vfw_cs_currency cookie. Default: 30.

Page cache compatibility: default on. Registers the vfw_cs_currency cookie with WP Rocket, WP Super Cache and LiteSpeed Cache (a cached copy per currency) and marks pages shown in a non-store currency as not cacheable for other cache plugins.

Server and CDN page caches (Varnish, nginx, Cloudflare APO…) must vary on or bypass the vfw_cs_currency cookie, otherwise a visitor can see prices of another currency from the cache. Cart and checkout are never cached by WooCommerce.

Cron

Automatic update: Every 15 minutes, Every 30 minutes, Every hour, Every 6 hours, Every 12 hours, Daily (default), Weekly or Off — manual button / external cron only. Runs with WP-Cron. Central banks publish once per working day, so Daily is enough for ECB, NBP, CBR and Bank of England.

Below are Last update, Last WP-Cron run, Next automatic update, the last update error (if any) and the External cron URL with a secret key. Call this URL from a real cron job on your server for exact timing; it can run at most once a minute. Buttons: Update rates now and Currencies & rates.

Logging

Enable logging: records rate updates, provider errors and GeoIP results. Default: off. The log is a protected PHP file in the logs folder of the plugin.

Log level: Info (everything), Warnings and errors or Errors only (default).

Rotate at, MB: 1–50. Default: 5.

The log viewer shows the latest entries.

Uninstall & Clear

Each cleanup button shows the number of records and asks for confirmation:

Delete Additional Currencies: deletes the saved currencies other than the store currency. Existing orders keep their currency and exchange rate.
Delete Older Rate History: keeps the latest rate record for each currency, so the next update can still check for sudden changes.
Delete Country Rules: deletes saved rules that assign a currency to a country.
Delete Fixed Currency Prices: deletes fixed regular and sale prices of products and variations. Prices are then converted from the store currency.
Clear Log: deletes all retained log entries.
Clear Currency Cache: clears the cached currency list. It is rebuilt when the list is next needed.

Delete data on uninstall: see Uninstall. Default: off.

License

The VibeFox license block (see License key).

Status

Your PHP, WordPress and WooCommerce versions compared with the minimum versions, and the active multilingual plugin.

Import / Export

Exports the settings to a JSON file and imports them on another site. Passwords and API keys are not included.

Fixed prices

With Fixed prices per currency on, the General tab of a product and each variation get a Fixed prices per currency block with Regular price and Sale price for every active currency. Empty = converted from the store price by the exchange rate. A filled-in price is used instead of the converted one. The sale price is used on the same schedule as the store sale price. A decimal comma is accepted.

How it works

In the shop

The switcher lists the active currencies with a rate. When a customer picks a currency, the choice is saved in the vfw_cs_currency cookie and the shop shows product prices, price ranges of variable products, the cart, the mini-cart, shipping, taxes, coupons, fees and the price filter in that currency. The switchers can be used with the keyboard. An unknown or switched-off currency in the cookie is ignored, and the store currency is used.

The order is created in the checkout currency on the classic checkout and on the Checkout block. The payment gateway receives the total in that currency. Paying an existing order (Pay for order) always uses the order currency. Order e-mails, My Account and the admin order screen show amounts in the order's own currency and format.

Orders in the admin

The order screen has a Currency block with Order currency:, Exchange rate: and Total in EUR: (your store currency). The orders list has a currency column, also with HPOS. Items and coupons added to an order in the admin are priced in the order currency.

When rates fail

Nothing changes in the shop: the current rates stay, the error is logged and shown on the Currencies screen, and the admin gets an e-mail (at most every 12 hours). Zero, negative or unreadable rates are never saved, and a rate that jumps more than Reject rate jumps above, % is rejected.

Store currency changed

All rates are relative to the store currency. If you change it in WooCommerce, conversion is paused, the switcher is hidden and the Currencies screen asks you to update the rates. Check fixed rates by hand.

Multilingual sites

Currency names (per language in Edit currency) and the widget title are translated with qTranslate-XT, Polylang or WPML. The checkout currency also works on translated checkout pages. E-mails to the admin are sent in the site's default language.

Orders created before the plugin was installed are not converted in WooCommerce Analytics until you re-import them.

Shortcodes and widget

[vfw_cs_switcher]: the currency switcher. Attributes: type="dropdown|buttons|inline|minimal", format (code_symbol, symbol, code or name) and flags="0" to hide flags. Without attributes the settings of the Switcher tab are used.

[vfw_cs_converter]: a currency converter with Amount, From currency, To currency and Result, using the shop exchange rates and the currency formats. Note under it: "Shop exchange rates. Final amounts are calculated at checkout.".

[vfw_cs_rates]: a table of the active currencies with Currency, Code, the rate for 1 unit of the store currency and the update date.

[vfw_cs_price product_id="123"]: the price of a published product in the current currency.

Currency Switcher widget: in Appearance > Widgets, with Title: and Type: (Dropdown, Buttons, Inline or Minimal (flag)).

PHP: vfw_cs_switcher() prints the switcher in a theme template; vfw_cs_convert( $amount, $from, $to ) converts an amount.

Reports

WooCommerce Analytics: amounts of orders in other currencies are converted to the store currency with the rate saved on each order, so reports never add dollars to euros. To convert orders placed before the plugin was installed, use Analytics > Settings > Import historical data.

VF Currency Switcher > Analytics (Currency Analytics): periods 7 days, 30 days, 90 days, 12 months or From / To. It shows paid orders, revenue in the store currency (at the rate saved on each order), currencies used, the average order, Sales by currency (orders, total, amount in the store currency and share) and Top billing countries. Partial refunds are subtracted.

REST API

Namespace /wp-json/vfw-cs/v1/:

/currencies and /rates: public, read only.
/convert?from=EUR&to=USD&amount=10: public; converts between available currencies.
/rates/update and /settings: for users who can manage WooCommerce. API keys are hidden in /settings.
/cron/update-rates?key=…: the external cron URL from the Cron tab.

License key

VibeFox license key: bought on vibefox.net. One key works on one domain.

The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.

Open VF Currency Switcher > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Currency Switcher then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.

Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox Currency Switcher) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.

An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.

Troubleshooting

The plugin menu shows only Settings: the license key is not active. Open VF Currency Switcher > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.

A currency can not be switched on: An active currency needs an exchange rate greater than 0. Click Update rates now, choose a provider that publishes this currency, or enter the rate by hand in Edit currency and tick Fixed rate — not updated automatically.

No exchange rate yet or No provider publishes a rate for …: the chosen providers do not publish this currency (for example RUB at ECB and NBP). Set a fallback provider that has it, or enter a fixed rate.

… API key is not set. Enter the key of the selected provider in Exchange Rates, or choose a free provider.

Rates are not updated automatically: WP-Cron runs on site visits. Check Next automatic update in the Cron tab, or call the External cron URL from a real cron job. A wrong key gives Invalid key., a second call within a minute gives Rates were updated less than a minute ago.

Rejected as a suspicious jump (rate kept): the new rate differed from the previous one by more than Reject rate jumps above, %. Check the provider; enter the rate by hand if the change is real.

A payment method is missing at checkout: check Payment methods per currency in the Checkout tab.

Visitors see prices in another currency from the cache: turn on Page cache compatibility and configure server or CDN caches to vary on or bypass the vfw_cs_currency cookie. Currency by country works only on uncached requests.

The currency could not be changed. Please try again. or This currency is not available. The currency was switched off or lost its rate; reload the page.

Fees of another plugin are converted twice: developers can return false from the filter vfw_cs_convert_fee for fees already calculated in the current currency. Other filters: vfw_cs_convert_coupon, vfw_cs_country_currencies (country to currency map), vfw_cs_is_admin_context, vfw_cs_currency_name; action vfw_cs_currencies_changed.

Uninstall

Deactivating the plugin only stops the rate schedule; all data stays. To remove it, deactivate and delete it on the Plugins page. The rate schedule is always removed. Currencies, rate history, country rules, settings, the widget settings, fixed product prices and logs are removed only if Delete data on uninstall was on. Otherwise they stay for a later re-install. Orders always keep their currency and saved exchange rate. The key and its status are always removed with the plugin; the domain slot is freed only in your vibefox.net account.

Fixer.io, Open Exchange Rates, CurrencyLayer, ExchangeRate-API, FreeCurrencyAPI, Wise, Xe.com, ip-api.com and geoPlugin are trademarks of their respective owners. This plugin is not affiliated with or endorsed by them.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle