Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add post

Add question

You must login to ask a question.

Login

Register Now

Цель сайта совместная помощь друг другу, если вы желаете скачивать ресурсы и ничего при этом не делать, вам нужно оплатить Подписку Другой вариант активно помогать другим участникам

GeoIP Country-to-Currency Autodetect

GeoIP Country-to-Currency Autodetect

Supported OpenCart Versions:
================
1.5.x
2.0.x

What does it do:
================
This contrib adds a country check to automatically choose a currency based on the customer’s ip address.
It uses a complete list of country-to-currency code matchups to show any supported currencies to the customer.
When the customer first visists your site, it will grab his IP address and lookup his country.
It will then match the country to the associated currency that is local to that country.
If that currency is one that your store supports and has enabled in the system, then it will switch to that currency automatically.
If the currency is not supported in your store, then it will default to your store default currency.

Requirements:
================
You must have the latest vQmod Engine installed from http://vqmod.com

Main features:
==============
* Uses IP lookup to get the customer’s country
* Checks that the currency exists in opencart and sets it or defaults to you the store default currency.
* Country/Currency mapping can be easily changed at anytime
* Has 2 different lookup systems in place. If the first fails, it tries the second.
* Sets cookie to avoid lookup on each page reload. Cookie lasts until browser close
* Shows the country code quietly in the footer (shows * if using cookie version)
* Still Allows customer to change their currency to something else.

Notes:
==============
* If you are using a cache mod, you will need to ask the author of that mod how to allow bypassing the footer.php controller for this to properly be able to set a cookie. Otherwise you could end up with an endless loop
* If you want to test it using a proxy or vpn, be sure you delete your browser cookies each time you reload the page with a new location. It only detects the country if you don’t already have a cookie with the value set.
* You must have the currency installed for it to switch.
— Example, if you do not have GBP installed, but come from UK, then it will not automatically switch
* IP Lookup sometimes fails on 3rd world countries.
— If country cannot be found by lookup it returns ‘XX’. In this case it will just load the default currency.

CountryCurrencyv200.1b Feofan Net (388.7 KiB)

About Grek

Хорошее начало — не мелочь, хотя и начинается с мелочи По вопросам подписки / рекламе, пишите в личку https://t.me/trafimmamedov или на почту [email protected]

Follow Me

Leave a reply