Currency Switcher
Last updated
Last updated
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
check left radio button to set this currency as base IF ITS REALLY BASIC CURRENCY
enter currency code as described
select currency sign
select currency sign position
select currency decimals
enter currency rate relative to the base OR press finance agregator button
enter any description text (better do that)
click on empty flag image and select the flag image. Take some free
press 'Save changes'
Check left radio button to set any currency as basic (default) - it is very important:
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.
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.
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']
show_flags - show flags: 1 or 0
width - width. Set it like:300px,150px,75%,100%
flag_position - flag position. You can set left or right (for ddslick skin only)
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:
​by:realmag777
​by:VillaTheme