Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geoip]

denotes magento questions related to GeoIP

-1
votes
1answer
39 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.
-3
votes
0answers
25 views

The address xxx.xxx.xxx is not in the database

we are using GeoIP data extension but face an issue like below public_html/var/report]# cat 253668948205 a:5:{i:0;s:51:"The address xxx.xxx.xxx.xxx is not in the database.";i:1;s:4435:"#0 ...
0
votes
0answers
26 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 = ...
0
votes
1answer
19 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 ...
0
votes
1answer
36 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 ...
1
vote
3answers
107 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 ...
2
votes
1answer
209 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 ...
0
votes
1answer
37 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 (...
0
votes
0answers
27 views

Magento 2 pop-up window on frontpend depending on IPs

I have a Magento 2 website running in two websites - Sweden (SEK as currency) and USA (USD as currency). I used Store Switcher extension to move customer to the right website automatically, depending ...
1
vote
0answers
133 views

Magento 2 : Show price tax wise by country

I have setup TAX in website country wise. Now I want to show it country wise on product,category,cart page**(before Estimate)**. Is there any module for this? I think I need Geoip Extension but,not ...
0
votes
2answers
678 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 ...
8
votes
1answer
730 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 ...
1
vote
1answer
680 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 ...
2
votes
2answers
193 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 ...
2
votes
2answers
719 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 ...
4
votes
3answers
3k 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:...
0
votes
1answer
33 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 ...
2
votes
0answers
409 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 * ...
2
votes
1answer
3k 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?
0
votes
1answer
545 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 ...
0
votes
1answer
106 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 ...
1
vote
1answer
649 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 ...
3
votes
1answer
112 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 ...
1
vote
2answers
1k 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. ...
0
votes
1answer
113 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 ...
1
vote
1answer
2k 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 ...
7
votes
4answers
6k 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 ...
5
votes
2answers
52 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?