How To Add Currency Conversion In WordPress

Learn how to easily add currency conversion to your WordPress website or blog using a free WordPress plugin called Currencyr …

Adding Currency Conversion To WordPressDo you sell goods or services online to a foreign market? If so, then it’s a great idea to think about providing your prospects with currency conversion.

Currency converting software allows your customers to translate foreign currency amounts into their home currency at the point of sale. It also lets visitors see the exact amount their card or PayPal account will be charged, expressed in their local currency.

One great benefit of adding currency conversion is that it lets your customers see and understand pricing in foreign countries in their own home currency, and makes it easier for customers to calculate their costs and expenses.

If your site is powered by WordPress, you can add currency conversion via a plugin to your WordPress website or blog, allowing your site visitors to quickly work out the cost of your goods.

WP Free Currency Conversion Plugin – Currencyr

Currencyr

Currencyr is an intuitive, easy-to-use and complete currency converter plugin with a unique and attractive converter tooltip. It’s also free!

Some of the many features of this plugin include the following:

  • In-line converter
  • Supports several exchange rates providers, like Google, Open Exchange Rates & FoxRates
  • WP-Cron task scheduler enabled
  • Widgetized currency table and converter
  • Can be integrated with a number of e-commerce plugins like WooCommerce, WP-eCommerce and Easy Digital Downloads.
  • Can determine local currency automatically
  • Supports full language translations

Note: The Currencyr plugin requires PHP 5.3.0 or later. Do not install this plugin if you currently have an older version of PHP installed on your server. Ask your webhosting company to update your PHP.

***

You can install the plugin from your WordPress dashboard by searching for “currencyr” in the Plugins area and clicking “Install Now” …

WordPress Plugin - Currency Conversion

After installing and activating the plugin, you can access the plugin’s settings page by choosing Currencyr from your WordPress administration navigation menu …

WP Plugin - Currencyr

The plugin settings screen offers you many configuration options …

WP Plugin - Currencyr

For example, you can choose a base currency from the Base Currency drop-down menu if you prefer something other than the default option (USD) …

WP Plugin - Currency Converter

You can also select which data provider you want to use from the drop-down menu in the Provider section. The default provider is ‘Yahoo! Finance’, but you can choose one of the other options, like European Central Bank, FoxRate, Google Finance or Open Exchange Rates …

WP Plugin - Currency Converter

Note: If you select Open Exchange Rates, you will need to enter an API (Application Programming Interface) ID …

WordPress Plugin - Currencyr

You can specify how frequently you would like to update the currency exchange rates by choosing an option from the ‘Update Rates’ dropdown menu …

WordPress Plugin - Currency Converter

The Currencyr plugin uses jQuery, which is an open-source library of Javascript code that allows web developers to add things like animation effects to web applications (such as WP plugins).

If you have no reason to edit the jQuery settings, leave these as they are …

WordPress Plugin - Currency Conversion

Configure the remainder of the settings and don’t forget to click ‘Save Changes’ when finished …

WP Plugin - Currency Converter

After you have finished configuring your settings, you can start adding currency conversion to any WP post using a shortcode.

See the ‘Additional Plugin Notes’ section below to learn how to use currency codes (e.g. USD, NZD, CAD, etc …) in the Currencyr plugin.

How To Use Plugin Shortcodes

You can add currency conversion to WordPress posts, pages and widgets without having to edit code using shortcodes.

Here are some examples of currency shortcodes that you can add to posts and pages:

Let’s say that you sell a product on your site for a fixed price (e.g. $175) in US Dollars (USD), and you would like to display the amount converted into British pounds (GBP) on your page.

To display this information, just insert the following shortcode to your page content …

WordPress Plugin - Currency Converter

Note: You can also add pricing in dollars and cents (for example, 89.95, 79.45, 2499.99, etc …)

The screenshot below shows how your shortcode looks when inserting it into the page or post …

WordPress Plugin - Currencyr

When the page or post has been published, your converted currency amount will appear like this …

WP Plugin - Currency Conversion

Using the above example, let’s also display the same amount into different currencies.

To do this, use following shortcode (add as many currency symbols as you like by using vertical pipes) …

WordPress Plugin - Currencyr

The screenshot below now shows how the shortcode appears when you add it to your content …

WP Plugin - Currency Converter

After publishing the page, your currency conversion will then display as seen in the screenshot below …

WordPress Plugin - Currencyr

See the ‘Additional Plugin Notes’ section at the end of this tutorial to learn how to change the currency separator symbol within the Currencyr plugin.

Now, let’s say that you want to use a different base currency than the one you have selected as your default.

For example, if you have specified your default base currency as EUR and you have a section on your e-commerce pages targeted to customers in countries like Australia or Canada, you can change the base currency using the following shortcode …

WordPress Plugin - Currency Converter

Here’s how the shortcode looks when inserted into your content …

WP Plugin - Currency Conversion

Once your post has been published, the currency conversion will then appear like this …

WordPress Plugin - Currency Conversion

Widget

You can also add a currency converter to your website or blog’s sidebar using the plugin’s widget.

To add currency conversion to your sidebar menu, choose Appearance > Widgets from your WordPress user admin menu …

WP Menu: Appearance > Widgets

In the Widgets > Available Widgets area find the ‘Currencyr’ widget and drag it to the ‘Active Widgets’ area …

WordPress Plugin - Currency Converter

Configure the widget settings as shown below (add the currency codes you want to display on your widget separated by commas), and click Save to save your settings …

WP Plugin - Currency Converter

Your currency converter will now show on the sidebar menu with the settings you have selected …

WP Plugin - Currencyr

Additional Plugin Notes

Here are some additional notes and useful information about using the plugin.

Currency Separator

The Currencyr plugin allows you to specify the symbol to display as the currency separator when using several currencies.

You can change the symbol in the Multiple Separator settings section.

So, for example, entering the default symbol “/” (forward slash) …

WP Plugin - Currencyr

Separates all your currency amounts with the forward slash as you can see in the example below …

WordPress Plugin - Currencyr

If you change this symbol and resave your settings …

WordPress Plugin - Currency Converter

Your web visitors will see the new symbol used as the currency separator …

WordPress Plugin - Currencyr

Integration With e-Commerce Platforms

As stated earlier, the plugin can be integrated with a number of WordPress-compatible e-commerce plugins such as WooCommerce and Easy Digital Downloads …

WP Plugin - Currency Converter

(image source: Currencyr plugin website)

And there you have it! Now you know how to easily add a currency converter to your WordPress site.

To learn more about WordPress e-commerce plugins, see the tutorial below:

***

"If you're new to WordPress, this can stand on its own as a training course and will stay with you as you progress from beginner to advanced and even guru status." - Bruce (Columbus, Ohio)

Originally published as How To Add Currency Conversion In WordPress.