Questions tagged [geoip]

denotes magento questions related to GeoIP

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

Magento2.3.2 - Geo IP Location

Is there any plugin available for automatic detect customer current Geo location in Magento2.3.2 ?
0
votes
0answers
23 views

How to increase price of custom options depending on IP

I have installed a GeoIP extension that allows me to change the prices of products depending on the currency. However this extension does not let me change the price of the custom options. Which file ...
2
votes
0answers
55 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: ...
-1
votes
1answer
78 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.
0
votes
2answers
79 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
26 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
52 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
379 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
288 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
43 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
2answers
1k 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
855 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
916 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
229 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
3answers
915 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 ...
6
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
35 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
426 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
596 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
108 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
704 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 ...
2
votes
1answer
123 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
118 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?