how to use magento geoip?

13
How To Use Magento GeoIP Store Switcher Based on Customer Location

Upload: maryjohnson1555

Post on 03-Apr-2016

226 views

Category:

Documents


3 download

DESCRIPTION

Learn how to use Magento GEOIP Based on Customer Location

TRANSCRIPT

Page 1: How to Use Magento GEOIP?

How To Use Magento GeoIP Store Switcher Based on Customer

Location

Page 2: How to Use Magento GEOIP?

Determining Customers Location can be Quite Useful.

Page 3: How to Use Magento GEOIP?

How it Can be Useful

• You can Block them to prevent access to your Website.

• You can show them specific products depending on their Location.

Page 4: How to Use Magento GEOIP?

Magento doesn’t have such functionality so far by Default

Page 5: How to Use Magento GEOIP?

Don’t Worry We are here to Show how you can do This

Page 6: How to Use Magento GEOIP?

How You can Do this

• In this Presentation we decided to help you in understanding of GeoIP integration into Magento. Moreover, we will show you how to find customer location for redirection to a proper store.

Page 7: How to Use Magento GEOIP?

How to Start• As we told earlier that This Function is not available in Magento by

Default. You have to need third party Extension for it. We have found one of that extension which works fine. They have already integrated GEOIP. Install FME Magento Store Module it and then do following steps

Page 8: How to Use Magento GEOIP?

IP database under System Configuration->General->Countries Options:

Page 9: How to Use Magento GEOIP?

Let’s imagine that we have three different stores: English, French, German

Page 10: How to Use Magento GEOIP?

Our Goal is to redirect a customer automatically to a specific store, basing on his location.

Page 11: How to Use Magento GEOIP?

we will redirect a customer only on the first visit

Page 12: How to Use Magento GEOIP?

Set cookie to Prevent further checks

• in controllerActionPostdispatch method first of all we check if a customer hasn’t been already redirected, then determine country by IP, check country to store relation and redirect to a store if it is not the current store. Finally, we set cookie to prevent further checks

Page 13: How to Use Magento GEOIP?

Set cookie to Prevent further checks