Skip to content

Configuration

Settings are in Add-ons → Manage add-ons → Currency Autopilot → Settings. The per-currency choices (source, margin, limit), the geo currency map and the payment rules are on the add-on page Administration → Currency Autopilot.

On Multi-Vendor only the marketplace administrator sees and changes these settings; vendors have no access. On CS-Cart Ultimate the rates are the same for all storefronts (CS-Cart shares currencies), while the geo currency settings and map can differ per storefront. Only administrators of all stores can change the rates; an administrator of a single store can edit the geo currency map of his storefront and the payment rules of his store.

Setting Default What it does
Enable On Switches rate updates, geo currency and payment rules on or off.
Hold a new rate when it changes by more than (%) 10 Safety limit for every currency. A bigger change is not applied: the current rate stays, the new one waits on the Rates page for Accept or Reject, and you see a notice in the admin panel. 0 = no limit. A currency can have its own limit on the Rates page.
Treat a feed as outdated after (days) 5 Central banks publish on working days only, so over a weekend or a holiday the newest rates are 1–4 days old. A feed older than this is not used: rates are kept and you see a notice.
Decimals of the stored rate 5 CS-Cart stores currency rates with up to 5 decimals.
Central Bank of the Republic of Turkey: rate to use Average The TCMB publishes forex buying and selling rates: use their average, the buying or the selling rate.
Show an admin notice when a rate is held or a source fails On One notice per change, on the next admin page.
Keep the rate history for (days) 365 Older history lines are deleted by the cron job. 0 = keep forever.
Delete all data on uninstall Off Off: uninstalling keeps your data (see Installation). On: the next uninstall deletes the rate history, currency settings, geo map, payment rules and settings for good.

Rates page (Administration → Currency Autopilot)

Section titled “Rates page (Administration → Currency Autopilot)”

For each currency except the primary one:

  • Source: Manual (the add-on never changes this currency), European Central Bank, Narodowy Bank Polski, Czech National Bank, Central Bank of the Republic of Turkey or Bank of Canada. A source marked “does not publish it” cannot price this currency in your primary currency. Use suggested sources picks a suitable source for every manual currency (the central bank of your primary currency first, then the ECB).
  • Margin (%): a positive margin makes prices shown in that currency higher by that percentage, to cover card and bank conversion fees. A negative margin makes them lower. From -50 to 50.
  • Limit (%): the safety limit for this currency. Empty = the limit from the settings.

The 100 USD = column (your primary currency) shows what a price of 100 looks like in each currency at the current rate.

Run the update job every hour with your server’s cron. The exact command and URL are shown at the bottom of the Rates page and in the settings:

php /path/to/store/admin.php --dispatch=kv_currency_autopilot.cron

or, if you can only call URLs:

https://your-store.com/index.php?dispatch=kv_currency_autopilot.cron&cron_password=YOUR_CRON_PASSWORD

The URL uses the cron password of Settings → Security settings → Cron password; it does not work while that password is empty.

Running the job often costs nothing: each source is asked only when its new rates are due (after its publication time on Monday to Friday). If a bank has not published yet (a holiday or a delay), the source is asked again two hours later; a source that failed is asked again after 30 minutes. Only one update runs at a time.

Source Base currency Publication (local time)
European Central Bank EUR about 16:00 CET on TARGET working days
Narodowy Bank Polski (table A) PLN around noon on Polish working days
Czech National Bank CZK about 14:30 on Czech working days
Central Bank of the Republic of Turkey TRY afternoon on Turkish working days
Bank of Canada CAD by 16:30 ET on Canadian business days
Setting Default What it does
Show first-time visitors prices in the currency of their country Off On the first visit, and only when the visitor has not chosen a currency, the add-on switches to the currency of the visitor’s country if that currency is active on the storefront. A currency the visitor picks in the currency switcher always wins and is remembered. Search engines and other crawlers always see your default currency.
How the currency is set Automatic On the server: decided on the first page view, no reload. In the browser: the page stays the same for every visitor (safe for any page cache) and the visitor’s browser switches the currency once, with one reload. Automatic uses the browser mode when a full page cache add-on is active (the CS-Cart 4.21 Full page cache or our Full Page Cache), otherwise the server mode. Choose In the browser if a CDN caches your HTML pages.
My store is behind Cloudflare: use its visitor country (CF-IPCountry) Off Turn on only when your store runs behind Cloudflare with IP geolocation enabled. The header is trusted only from Cloudflare addresses or your own proxies (Client IP settings tab). Otherwise the country comes from the GeoLite2 country database that ships with CS-Cart.

The Geo currency tab of the add-on page shows which countries get which currency automatically (ISO 4217, for the active currencies of your store) and lets you add rules for single countries: for example EUR for Switzerland, or Keep the default currency for a country. On CS-Cart Ultimate and on Multi-Vendor 4.18+ with several storefronts you can add rules per storefront; rules for All storefronts apply where a storefront has none.

The Payment methods tab lists every payment method with a checkbox per currency. A method with every currency ticked is shown always (the default). Untick currencies to hide a method at checkout while the visitor sees prices in those currencies. If the visitor switches the currency after choosing a hidden method, the order is refused with a message and the visitor chooses another method.

CS-Cart charges orders in the primary currency unless the payment gateway supports the visitor’s currency. For rules based on order total, weight, customer group or location use our Shipping & Payment Restrictions add-on.

The Client IP tab decides where the visitor address comes from (used for the GeoLite2 country lookup). The default (Automatic: Cloudflare and private reverse proxies) trusts Cloudflare only from its published address ranges. If your store runs behind a reverse proxy or load balancer with a public address, choose Automatic, plus the proxies listed below and list its addresses.

Enter your license key on the License tab and click Check now. Without a valid license rates are no longer downloaded, visitors are not switched to their country’s currency and payment methods are shown in every currency again; your rates, history and settings are kept.