Nilog Developers
  • Introduction
  • Integrations
    • WooCommerce
      • Adding Products
      • Variable Product
      • Product Attributes
      • Managing Orders
      • Coupon Management
      • Currency Switcher
      • WooCommerce Reports
      • WooCommerce Analytics
      • Tax Settings
      • Multi Vendors
      • Email Settings
      • WooCheckout Webview
      • Web Store Layout
    • App Builder
      • App Builder Widgets
    • User Authentication
      • Login with Google
      • Login with Apple
      • Login with Facebook
      • Login with Firebase OTP
    • Cloud Messaging
      • Firebase Cloud Messaging
      • OneSignal
    • Google Maps API Key
  • Developers
    • React Native Development Setup
    • WP Generate Rest API keys
  • Reference
    • API spec
      • WordPress
    • Language Support
    • Changelog
      • App Builder
      • Nilog Monitor
    • Upgrade Your App
    • License Key
    • Enable WP Debug
    • Troubleshooting
      • JWT Authentication for WP REST API plugin installed
      • Hide Admin Account From Vendor List In Dokan Backend
Powered by GitBook
On this page
  • Install and activate the plugin
  • Tab GeoIP rules
  • Shortcode installation
  • Supports all plugins that work (We Recommended)
  1. Integrations
  2. WooCommerce

Currency Switcher

PreviousCoupon ManagementNextWooCommerce Reports

Last updated 3 years ago

Install and activate the plugin

Go to WooCommerce settings -> tab "Currencies"

There will be 2 currencies installed by default: USD and EUR

REMEMBER: BASE CURRENCY ALWAYS MUST BE EQUAL TO 1 AS ON THE SCREEN ABOVE!!

Check radio button to set your site basic currency

Press 'Add currency' to add new one if you need this

  1. check left radio button to set this currency as base IF ITS REALLY BASIC CURRENCY

  2. enter currency code as described

  3. select currency sign

  4. select currency sign position

  5. select currency decimals

  6. enter currency rate relative to the base OR press finance agregator button

  7. enter any description text (better do that)

  8. click on empty flag image and select the flag image. Take some free

  9. press 'Save changes'

Check left radio button to set any currency as basic (default) - it is very important:

For each currency you can hide cents on the front of your site. By default JPY cents are always hidden

if you want let your customers pay in their selected currency in tab Advanced set the option Is multiple allowed to Yes.

If you want to update all currencies from the current aggregator for one time - press radio button of the basic currency

If you not found money sign you need you can always add it in the tab Options -> Custom money signs

You can set currencies rate by hands, or by with aggregators functionality:

  • No GET data in link - Switches currency without GET properties (?currency=USD) in the link

  • Show money signs - Show/hide money signs on the front drop-down

  • Show price info icon - Show info icon near the price on the front of the product which on hover shows prices of products in all another currencies exept of current one.

  • Welcome currency - In wich currency show prices for first visit of your customer on your site:

  • Currency aggregator - Currency aggregators which allows to get currency rates automatically!

  • Currency storage - sometimes some servers doesn allow keep data in the session on site front for non-logged users. So just set it to transient!

  • Rate auto update - You can set rate auto update for your currencies by wp cron - hourly, twice daily, daily, weekly, monthly.

by pressing 'finance.aggregator' button. The rate of the currency must be updated with normal value. Sometimes for some countries or servers no one aggregator works!

Email notice about "Rate auto update" results - After cron done - new currency rates will be sent on the site admin email. ATTENTION: if you not got emails - it is mean that PHP function mail() doesnt work on your server or sending emails by this function is locked.

Hide switcher on checkout page - Hide switcher on checkout page for any of your reason. Better restrike for users change currency on checkout page in multiple mode.

Payments rules - Hide/Show payment systems on checkout page depending on the current currency

Show approx. amount - Show approximate amount on the checkout and the cart page with currency of user defined by IP in the GeoIp rules tab.

Tab GeoIP rules

From WooCommerce version 2.3.0 it is possible to define from which country is your customer from by IP. This usefull functionality is using by the plugin to show your site customers currency which you decided to show them in their firts visit.

Here is all simple: add countries to the currencies using drop-down. And that is all. For example as on the screen: USD -> selected United States -> this means that for all customers from USA will be set USD on their first visit to your site.

Shortcode installation

The plugin has shortcode which you can drop anywhere:

WOOCS is woo currency tool and available as shortcode [woocs] so as the widget. [woocs style=1 show_flags=1 width='300px' flag_position='right' txt_type='desc']

  1. show_flags - show flags: 1 or 0

  2. width - width. Set it like:300px,150px,75%,100%

  3. flag_position - flag position. You can set left or right (for ddslick skin only)

  4. txt_type - 2 values: desc and code. desc - on the front will be shown currency description in the drop-down options. code - will be shown currency code and its sign.

If you want to set switcher in your wp theme header.php or footer.php use next code:

<?php echo do_shortcode('[woocs]'); ?>

Supports all plugins that work (We Recommended)

​by:realmag777

​by:VillaTheme

WOOCS – WooCommerce Currency Switcher
Multi Currency for WooCommerce
here
flags here