Questions tagged [geoip]

denotes magento questions related to GeoIP

Filter by
Sorted by
Tagged with
1 vote
1 answer
103 views

Magento2: How to get customer zip code based on the customer location (Guest Users)

I would like to get the customer zip code based on the customer location (Guest Users) Please let me know if anyone has an idea how to get it done. Thank You
Suresh Chikani's user avatar
0 votes
0 answers
30 views

Auto Switch Language when country changed

My question is how I can switch language when country code is changed. I have use this extension https://magefan.com/magento-2-auto-language-switcher But they have changed store using geo ip location ...
user avatar
1 vote
1 answer
154 views

How to change store based on country location in Magento244?

In magento2 how to change store according to country using geoip location..
Keval Chauhan's user avatar
0 votes
1 answer
114 views

GeoIP issue when automatically setting storeview in Magento 2 (`geoip_country_code_by_name` function)

In order to automatically switch store views depending on a user's location we have decided to add the code provided here:Magento 2 pragmatically set storeview to ourindex.php file as shown below: <...
Alex B's user avatar
  • 101
1 vote
0 answers
48 views

Multi Currency Store

in setting up a store with multiple currencies is it best to only offer option at checkout or based on entry IP address?
anne's user avatar
  • 11
1 vote
0 answers
68 views

Magento 2.3.1 Store redirect based on GEO IP not working with Cache warmer

I am using GEO IP extension to redirect user to specific store. It's working correctly without cache warmer. When i installed cache warmer Store redirect is working correctly but getting incorrect ...
vishal's user avatar
  • 25
1 vote
1 answer
698 views

Magento 2 multiple countries setup multi store or multi website?

I want to setup magento 2 instance with below requirements in Magento 2.3 CE 1) Multiple countries option with country switcher UAE/Dubai (default) KSA/Saudi Arabia (This will further have below ...
Lokesh Naik's user avatar
0 votes
1 answer
377 views

magento 2.3.1 Store redirect based on Geo IP

I want to redirect user to a specific store based on IP address. I am using front controller dispatch method. i have overridden this method through plugin and using before dispatch method. I am also ...
vishal's user avatar
  • 25
2 votes
1 answer
201 views

GeoIP Extension not working for Store Views

I have installed Mageworx Geo Lock Free via SSH method & configured using the provided instructions. https://support.mageworx.com/genext/install_m2/ https://support.mageworx.com/manuals/free/...
Shailesh's user avatar
  • 133
2 votes
0 answers
218 views

Magento 2 : Set current store throughout the site

I want to set currentstore according to geoip of customer.for that i have tried below code: MagentoDir/app/code/Shasha/Geoip/Observer/Redirect.php <?php namespace Shasha\Geoip\Observer; ...
Balwant Singh's user avatar
2 votes
1 answer
962 views

Change the default currency based on customer geo location - Magento 2.3.2

How to set currency depending on country's IP, meaning if a customer browses my site from US location then the current currecny and language should be USD & en_US. Or if customer browse my site ...
Balwant Singh's user avatar
1 vote
1 answer
749 views

Magento2.3.2 - Geo IP Location

Is there any plugin available for automatic detect customer current Geo location in Magento2.3.2 ?
Moorthy A's user avatar
2 votes
0 answers
150 views

Magento1 - Getting Notice and error relating to GeoIP in system.log

I'm getting below Notice and error in system.log file continuously : Notice: Uninitialized string offset: 0 in /lib/GeoIP/geoip.inc on line 413 2019-06-26T05:26:23+00:00 ERR (3): Notice: ...
Vinaya Maheshwari's user avatar
1 vote
1 answer
958 views

Country drop down change based on geoIp location on cart page

When any guest user comes at cart page I want to change the country drop-down based on guest geoIp location. Here I am adding the actual picture.
Manish Goswami's user avatar
0 votes
2 answers
297 views

Issue with geoIP code

I have installed the OpenStream geoIp extension that pulls data from MaxMind database and I have been using this code for years to hide prices in countries that are not allowed: $geoIP = ...
Shakamal's user avatar
  • 103
0 votes
1 answer
59 views

Multi store URL's of wrong store with GEOIP extension

I am using Magent0 2.0.6 PHP 7.0.32 I have multiple store views: - Dutch - English - French And have GeoIP extension installed that check user's IP and redirect to matching store. But on the ...
anujeet's user avatar
  • 195
0 votes
1 answer
260 views

Not getting Country name by geo location

I am trying to get country name by Geo-location. so i used Geo plugin but not working good. its show all good by browser url. but when i am trying to set response by php its not return anything. I ...
Ajay Patel's user avatar
  • 1,513
1 vote
3 answers
2k views

How can disable the cache for some block in Magento 2 [duplicate]

Please check Below code. I have try to get customer country code on footer.phtml. I have used GeoIP plugin to get. And added this code to block. Anyone let me know that How can I get this code out of ...
Pratik Kamani's user avatar
2 votes
1 answer
724 views

Magento 2.2.2 - Redirect user to CMS page based on IP using Observer

events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event ...
Slimshadddyyy's user avatar
0 votes
1 answer
60 views

Exclude subfolders from geoip redirect

I am using this geoip redirect extension for magento. https://github.com/magento-hackathon/Sandfox_GeoIP It works well and I use a file called geoipredirect.php to redirect to store views/websites (...
Stefan's user avatar
  • 21
2 votes
2 answers
4k views

How to get real IP from behind Sucuri firewall

I have a Magento store on an Ngix behind Sucuri firewall and we hide prices if the IP is outside of UK. A bruteforce attack was bypassing the firewall so the hosting added the following rules to ...
Shakamal's user avatar
  • 103
11 votes
1 answer
2k views

Magento 2.1.9 : Change store based on country

Important: I don't want to buy any GeoIP extension. I have a Magento 2.1.9 website with multi-site and multi-store setup. I have setup website for KSA, UAE, CHINA, EGYPT etc. and under each website ...
Abid Malik's user avatar
1 vote
1 answer
1k views

How to get Geo IP of customer in magento2?

I want to get the customer geo IP in magento2. I used some third party calls but If I enable proxy means that thing is not working. How can I get the original customer IP in magento2 anybody has idea ...
Jeeva Chezhiyan's user avatar
2 votes
2 answers
667 views

Magento Using Composer Class in Module

I am using geoip2/geoip2:~2.0 but need to access the GeoIP data from within a magento Model Class. use GeoIp2\Database\Reader; gives an error. I am not sure how to call this in order to be able to ...
Darren's user avatar
  • 57
5 votes
5 answers
3k views

Magento 2 - Geo IP Redirect and Varnish

We run a Magento 2.1.8 Shop with Amasty Geo IP Redirect Module. Unfortunatly it is not working correctly with varnish. Amasty wrote they know no working solution right now. I looked up for other ...
Johnny Longneck's user avatar
6 votes
4 answers
8k views

Magento 2 redirect to a specific store view programatically

Magento 2 multi site is setup. I want to know redirect programatically to a specific storeview based on country So I have something like the below however it is not working because I believe the Mage:...
Jayreis's user avatar
  • 685
0 votes
1 answer
79 views

magento 2.1: Is it possible to make the admin page url work from two seperate URLs?

I'll explain our situation first for context: We are a canadian based company, so our Geo-IP location is Canada. When we first setup our website, we had it setup as www.website.COM , however recently ...
TheNorthern_Light's user avatar
2 votes
0 answers
568 views

magento 2 : getting shipping rates table data

Iam having shipping rate data in database table. Country Region Zip Code Order (and above) Shipping Price IN * * 0 45 IN * ...
User0434's user avatar
  • 1,133
4 votes
1 answer
5k views

magento 2 : Get country from IP address

How to get the name of the country from the ip address in magento 2. I think it will require me to use geoip, but I don't know how to do it. Any help?
User0434's user avatar
  • 1,133
0 votes
1 answer
900 views

Geo IP based store view selection with Varnish

I have a Magento site with two store views where the store is determined by geo IP (as long as no store cookie is explicitly set). This is done by setting the environment variable MAGE_RUN_CODE in ...
Fabian Schmengler's user avatar
0 votes
1 answer
162 views

Multi store view stuck?

So I want to have a multi store view. UK/Europe - Inclusive of 20% vat tax International - Exclude 20% vat tax. I have an Amasty geoip also installed so maybe I can use that for the auto detect? but ...
Harley Kisberg's user avatar
1 vote
1 answer
966 views

Can I redirect people to the correct store view based on IP?

I am using GEOIP to redirect customers to either the US site or the UK site, but recently the client wanted to have the flags at the top of the site for the customers to manually switch to the US or ...
MrJoshFisher's user avatar
2 votes
1 answer
157 views

Store views are changing once we change page

We are following this link to display store views based on country. If someone visit site from USA, it will open us store view , Canada => Canada store view, so on. We are displaying store view ...
Baby in Magento's user avatar
1 vote
2 answers
2k views

Events and observers; what is being cached?

I am using Cloudflare to retrieve the Geo IP of a user. When using this in pub/index.php it always works and I am able to set the correct store view based on the header Cloudflare is passing. ...
TommyK's user avatar
  • 109
0 votes
1 answer
140 views

Geo Ip for Magento Site

My client has multi website magento ecommerce portal eg www.xyz.com for US Store, www.xyz.com/ca/ for Canada. Ive implemented the GeoIP plugin in Webserver which loads xyx.com for US customers and ...
Sridhar Panneerselvam's user avatar
1 vote
1 answer
3k views

Display the store views depending on I.P address

we have 2 store views for 2 countries [India & USA ] with store view codes sv1 & sv2 what we want is , if customer visit the site from USA, it should open USA store-view if customer visit ...
Baby in Magento's user avatar
7 votes
4 answers
8k views

Magento2: Re-direct to custom URL from observer

My requirement is that if a customer visits website from country India they should be redirected to indian website www.example.com/in/ . In all other cases it should be default website only. I'm ...
amitshree's user avatar
  • 6,892
5 votes
2 answers
61 views

Is it possible to setup different front pages in Magento for different cities?

Would it be possible to create new front pages for different cities - IE a San Diego page, a Los Angeles page, etc. using the same domain? What would be the best way to do that?
Allysin's user avatar
  • 178