WordPress For Non-Techies: Free WordPress Tutorials – WPCompendium.org

How To Add Currency Conversion In WordPress

Do you plan to set up a WordPress-based e-commerce site, or sell goods and services to a foreign customer base? If so, then it’s a great idea to think about providing your prospects with currency conversion.

Currency conversion software tools let your site visitors have the cost of an international currency transaction converted to their local currency when purchasing or checking out products online. It also lets visitors and customers view the exact amount their credit card or PayPal account will be charged, displayed in their local currency.

One benefit of adding currency conversion to your website is that it allows your customers to view and understand prices in foreign countries in their own local currency, and makes it easier for visitors to calculate their costs and expenses.

Fortunately, if you are a WordPress user, you can add a currency conversion plugin to your WP website or blog, allowing your visitors to quickly perform currency conversions to determine the cost of your goods.

Currencyr

Currencyr is a simple, easy-to-use and complete currency converter plugin with a unique converter tooltip. Best of all, it’s free!

The Currencyr plugin features:

Note: The Currencyr plugin requires your server to be running PHP 5.3.0 or later. Do not install this plugin if you are running an older version of PHP on your server. Ask your web host to check and upgrade your PHP server installation.

***

You can install the currency conversion plugin from your WordPress admin area by typing in “currencyr” into the Plugins search field and clicking the ”Install Now” button …

After you have installed and activated the plugin, you can configure the plugin’s settings by choosing Currencyr from your WordPress admin area …

The plugin settings page provides several configuration options …

For example, you can choose a base currency from a drop-down menu. The default base currency is ‘United States Dollar – (USD)’ …

Similarly, you can choose a data provider from the drop-down menu in the Provider section. The default selection is ‘Yahoo! Finance’, but you can also choose one of the other options, like European Central Bank or Google Finance …

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

You can select how frequently you want to update the exchange rates by choosing an option from the ‘Update Rates’ drop-down menu …

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 change the jQuery settings, just ignore this section …

Configure the remainder of the settings and click Save Changes when you have finished configuring this page …

After your plugin settings have been configured, you can easily add currency conversion to any WP post or page using widgets.

Refer to the ‘Additional Plugin Notes’ section at the end of this tutorial to learn more about using currency codes (e.g. USD, AUD, CAD, etc …) with the Currencyr plugin.

Currencyr Shortcodes

You can add currency conversion to posts, pages and widgets without having to edit your web templates using shortcodes.

Let’s take a look at some examples of currency shortcodes that you can add to pages and posts:

Let’s say that you sell goods online for a set price (e.g. $175) in US Dollars (USD), and you want to show this conversion amount in British pounds (GBP) on your page.

All you need to do is insert the shortcode below into your page content …

Note: You can also insert amounts in dollars and cents (for example, 16.95, 189.00, 129.10, etc …)

The screenshot below shows how the shortcode will look when inserting it into a post …

When your page or post has been published, the converted currency will then display as you can see in the example below …

Using the same example, let’s now translate the same amount into different currency formats.

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

The screenshot below now shows how the shortcode appears when inserted into a page …

Once the content has been published, your converted currency amounts will then appear as you can see below …

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

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

For example, if you have set your default base currency as EUR and you have a section on your e-commerce pages targeted to non-European visitors (for example, Australia or Canada), you can change the base currency using the following shortcode …

The example below shows how the shortcode looks when added to your content …

Once your page has been published, your currency conversion will then display as seen below …

Plugin Widget

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

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

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

Configure the widget options as shown in the example below (add currency codes separated by a comma), and click ‘Save’ to update your settings …

Your currency converter tool will now appear on the sidebar with the options you have specified …

Additional Plugin Notes

This section contains additional information about using the Currencyr plugin.

Currency Separator

The Currencyr plugin allows you to specify a symbol of your choice to display as the currency separator when using multiple currencies.

You can select a different symbol in the Multiple Separator settings field.

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

Displays your currency values separated by the forward slash as shown below …

If you change this symbol and resave your settings …

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

Integration With e-Commerce Platforms

As described earlier, the plugin can be integrated with various WP-compatible e-commerce plugins like WooCommerce, Shopp and Easy Digital Downloads …

(image sourced from plugin site)

Congratulations! Now you can go and easily add a currency converter to your WordPress website.

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

***

"Wow! I never knew there's so much to learn about WordPress! I bought one of the WordPress for Dummies three years ago, such authors need to be on this course!" - Rich Law, Create A Blog Now