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.

What is good platform for developing an E-commerce website?

What is a good platform for an E-commerce website?

Many people ask this question – What is a good platform for an E-commerce website? There are two options for implementing an E-commerce website: On-premises solution and SAAS based solution.

On Premises solution:

As per our study, Magento is a good choice. Magento is the platform to build e-commerce websites having around about 25–26% market share. It is having a big community of developers implementing solutions using this framework. That means you get more help regarding the development problems.

WooCommerce is also picking up these days having approximately 19–20% market share. However, it is a WordPress plugin and not a complete platform. With WooCommerce, there is a limitation on the readily available features compared to Magento.

Both of these are PHP based frameworks (opensource). Hence, the implementation cost, hosting cost and development cost is lower. And resource availability is higher compared to frameworks written in other languages. So, many startups and small companies go for these two options first.

Apart from these, there are many other PHP based frameworks. Those are Open Cart, os Commerce, PrestaShop, Zen Cart, Joomla E-Commerce etc. However, their development is not as active as the development of Magento.

Also, there are other frameworks available such as Apache OFBiz, BroadLeaf Commerce, Shopizer etc. An enterprise-grade language (i.e. Java) is used to write these frameworks. Development using these frameworks is costlier compared to Magento or other PHP based frameworks.

SAAS based solution:

If you don’t want to develop the e-commerce website yourself and don’t want to take the responsibility of hosting and maintenance (of course with the advantage of the development flexibility), you can go for a SAAS based solution which comes with a subscription model.

There are a couple of well-known platforms such as Shopify, BigCommerce, Volusion etc. You can choose one from these to host your website.

Hope you can judge to select one based on the above information.

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.

If you are looking for an E-commerce website or need consultation on that, Contact Us.