MR Multi-Currency (Geo + Markup) For WooCommerce Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
MR Multi-Currency lets your WooCommerce store display prices and totals in multiple currencies.
Highlights
* Auto-select currency by geo-location (Cloudflare WooCommerce/MaxMind ipinfo)
* Automatic FX rates (Frankfurter/ECB or exchangerate.host) with caching & cron
* Manual rate overrides per currency
* Per-currency markup (percent/fixed) & rounding rules
* Works across catalog, variable products, cart, checkout, shipping, fixed coupons, and admin orders
* Switcher: dropdown (POST cookie write) + links with param fallback and auto-clean URLs
* HPOS compatible (declared support for custom order tables)
No ORM, no classes, no custom DB tables — just small, testable functions and WordPress hooks.
External Services & Data Sources
This plugin connects to third-party services for exchange rates and optional geolocation.
Below we explain what is used, what data is sent, and provide links to their terms and privacy policies.
1) Exchange Rates
-
Frankfurter (ECB)
- Endpoint: https://api.frankfurter.app/latest?from=BASE&to=SYMBOLS
- Data sent: Only currency codes (e.g., USD, EUR, INR). No personal data.
- Notes: Rates based on European Central Bank data.
- Terms / Info: https://www.frankfurter.app/
- ECB Privacy: https://www.ecb.europa.eu/privacy
-
exchangerate.host
- Endpoint: https://api.exchangerate.host/latest?base=BASE&symbols=SYMBOLS
- Data sent: Only currency codes. No personal data.
- Terms / Info: https://exchangerate.host/
Caching & Scheduling: Responses are cached in WordPress transients. Refresh is controlled by “Rate refresh” (Manual / Hourly / Twice daily / Daily).
Accuracy: FX feeds are for display convenience and may lag your gateway’s conversion.
2) Geolocation (for Auto-Select Currency)
Choose the provider under Settings Multi-Currency Geo provider.
-
Cloudflare (HTTP_CF_IPCOUNTRY)
- Data used: Country code from Cloudflare edge header.
- Notes: Works only when your site is proxied via Cloudflare. The plugin does not call external APIs here.
- Terms: https://www.cloudflare.com/
-
WooCommerce Geolocation (MaxMind)
- Data used: The country result provided by WooCommerce (often via MaxMind GeoLite2).
- Notes: May require a MaxMind license key in WooCommerce settings. Calls are made by WooCommerce, not this plugin.
- Info: https://www.maxmind.com/
-
ipinfo.io (optional)
- Endpoint: https://ipinfo.io/json or https://ipinfo.io/{IP}/json (+ ?token=YOUR_TOKEN if set)
- Data sent: Visitor IP (ipinfo sees the IP from the request) and your token if provided.
- Data received: Country code (e.g., US).
- Notes: Token is optional; subject to ipinfo’s terms and rate limits.
- Terms: https://ipinfo.io/terms
- Privacy: https://ipinfo.io/privacy
3) What We Store
- Cookie:
mrwcmc_currency(visitor’s chosen/detected currency). - Transients: Cached exchange rates and geolocation country (per IP/provider).
- Orders: Snapshot of rates/provider used at checkout saved in order meta.
4) How to Disable External Calls (Privacy-Friendly)
- Set “Rate refresh” to Manual and provide Manual rates.
- For geolocation, pick Cloudflare or WooCommerce as provider, or leave Auto without an ipinfo token (no ipinfo calls).
- Skip geolocation entirely and let users select via the switcher.
5) Performance & Failover
- If a provider is unreachable, the plugin uses cached rates (if any) or base currency amounts.
- Geolocation is cached for one day to minimize lookups.
- Use the “Refresh rates now” button on the settings page for a manual update.
Detailed Setup
Quick Start
- Enable the plugin in WooCommerce Multi-Currency.
- Select Supported currencies.
- Fill Country Currency map (one per line, include
*=CURfallback). - Choose Rate provider and Rate refresh schedule.
- Optional: Manual rates, Markup, Rounding.
- Add a switcher via shortcode or theme hook.
Example field values
Country Currency map:
US=USD
CA=CAD
GB=GBP
IN=INR
*=USD
Manual rates:
EUR=0.91
INR=84.30
Markup:
EUR=%:3.0
INR=fixed:5
Rounding (decimals):
JPY=0
INR=2
Developer Notes
Filters
add_filter(‘mrwcmc_current_currency’, function($cur){ return $cur; }, 10, 1);
add_filter(‘mrwcmc_effective_rate’, function($rate, $cur){ return $rate; }, 10, 2);
add_filter(‘mrwcmc_price_converted’, function($amount, $cur){ return $amount; }, 10, 2);
add_filter(‘mrwcmc_geo_country’, function($country){ return $country; }, 10, 1);
add_filter(‘mrwcmc_order_snapshot’, function($snapshot){ return $snapshot; }, 10, 1);
Actions
do_action(‘mrwcmc_switcher’, [‘type’ => ‘links’]);
do_action(‘mrwcmc_refresh_rates’); // forces a manual refresh + cache bust
Helpers
mrwcmc_get_option(); // merged options with defaults
mrwcmc_get_supported_currs(); // array of ISO 4217 codes
mrwcmc_current_currency(); // current active currency (cookie/geo/base)
mrwcmc_site_base_currency(); // WooCommerce base currency (sanitized)
mrwcmc_effective_rate($cur); // effective BASECUR rate (markup applied)
mrwcmc_convert_now($amount); // convert plain numeric into current currency value
mrwcmc_convert_now_formatted($amount); // same but formatted with wc_price()
mrwcmc_set_currency_cookie(‘EUR’); // write cookie + mirror to $_COOKIE
mrwcmc_country_to_currency($cc); // map ISO country currency (via settings/filter)
Order snapshot meta (_mrwcmc_snapshot)
– base_currency
– order_currency
– rates (BASECUR at checkout)
– provider
– fetched_at
– markup_raw
– rounding_raw
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (or later) as published by the Free Software Foundation.
Screenshots
No screenshots provided
