Solve The Problem Of Currency Rate Conversion In Magento 1.9

Solve the problem of currency rate conversion in Magento 1.9

This article is about how to solve the problem of currency rate conversion in Magento 1.9, using Payserv GoogleFinance module.

Magento 1.9 uses Webservicex as the default service for currency rate conversion. However, Webservicex has stopped working for some time as of writing this blog. Hence there is a need to look for another service.

Payserv_GoogleFinance is the alternate to Webservicex for currency rate conversion.

To test the Payserv_GoogleFinance service, you can use this URL.

You can find the source code of the module at Github.

Once you download the source code files, follow steps as mentioned below to install the Payserv_GoogleFinance module:

Let’s copy the source code files at the appropriate location in the Magento store files first.

1. Create a folder with name ‘Payserv’ under store/app/code/community where ‘store’ is your base directory for the Magento store. Create another directory with name ‘GoogleFinance’ under ‘Payserv’.

2. Create a folder with name ‘Model’ under ‘GoogleFinance’ newly created in step 1. Copy Google.php from the source code under this directory.

Now, there needs to make a small correction to the source file Google.php at line #32 pertaining to the URL to be referred to get the exchange rates. The correct line should be as below:

protected $_url = ‘http://finance.google.com/finance/converter?a=1&from={{CURRENCY_FROM}}&to={{CURRENCY_TO}}’;

3. Create a folder with name ‘etc’ under ‘GoogleFinance’ newly created in step 1. Copy config.xml from the source code under this directory.
Let’s create the module file now:

4. Go to store/app/etc/modules directory. Here, create a file with name ‘Payserv_GoogleFinance.xml’ and the code lines as shown below within it.

<?xml version="1.0"?>
<config>
<modules>
<Payserv_GoogleFinance>
<active>true</active>
<codePool>community</codePool>
</Payserv_GoogleFinance>
</modules>
</config>

5. Flush the cache from Admin panel – System> Cache Management

6. Go to Admin panel – System> Manage Currency> Rates
Under ‘Import Service’ drop-down you can now see ‘Google Finance’ as another option besides ‘Webservicex’.

You can use this option to import the exchange rates now.

If you liked this article, please take a moment to share it! If you have any questions or want to share your thoughts, do it in the comment section below.

PS. Infomatica Labs has a strong focus on E-commerce. It helps startups and SMEs with consultation and implementation of an Online Store. Also, it can help with the development of a Mobile Commerce App or any other related technological solutions. If you think we can help you, contact us here.

Magento Logo

How to install Magento theme

Welcome to Infomatica Blog. In this small tutorial we would touch on how to install Magento theme which is the very next step the store owner would want to perform after Magento installation.

Here are the steps described to install a Magento theme for Magento version 1.9.2.4:

1. Go to Magento Admin > System > Magento Connect> Magento connect manager

Login to Magento Admin

Go to Magento Connect Manager

2. Login using Magento Admin username and password

Login to Magento Connect Manager

3. Under “Install New Extensions” select option 1. Search for modules via Magento Connect.

Search for modules via Magento Connect

4. Go to Themes from menu and browse for a suitable theme.

Browse theme

5. Select a theme of your choice and click on install.

Install theme

6. Select Magento version 1.0 or 2.0 and click on “Get Extension Key”

Get extension key

7. Copy the Extension key and go back to Magento Connect Manager and paste it and click on the install button.

Click on Install button

8. Underneath, it would show the package to be installed, click on the proceed button.

Proceed for theme package installation

9. Once dependency package checking and installation is completed, click on the refresh button.

Click on refresh

10. Go to Magento admin by selecting “Return to admin” option from the top.

11. Go to Magento Admin> System > Design. Click on “Add Design Change”. Select your installed theme from the Custom Design dropdown and save the configuration.

Go to System > Design

Add design change

Select theme

12. Go to the store front and see the new theme in effect.

If you liked the tutorial, please take a moment to share it! If you have any questions or want to share your thoughts, do it in the comment section below.

For any of your E-Commerce related technological needs, Contact Us.