Questions tagged [geoip]

denotes magento questions related to GeoIP

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Magento 2 fastly GeoIP redirect to different store but same country based on domain

We have below website and store setup within a single Magento instance Website 1 (domain1.com/uae) Store A (Country Code: AE) Website 2 (domain1.com/om) Store B (Country Code: OM) Website 3 (...
user avatar
0 votes
0 answers
29 views

Cache issue with multiple store

I have multiple stores for Magento 2 site and use the Amasty GeoIP extension for IP redirection. My IP is excluded for redirection. The multistore is based on site, not storeview, and uses URL like ...
user avatar
  • 1
0 votes
1 answer
77 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: <...
user avatar
  • 101
1 vote
0 answers
13 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?
user avatar
  • 11
1 vote
0 answers
38 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 ...
user avatar
  • 25
1 vote
1 answer
423 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 ...
user avatar
0 votes
1 answer
213 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 ...
user avatar
  • 25
2 votes
1 answer
145 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/...
user avatar
  • 133
2 votes
0 answers
64 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; ...
user avatar
1 vote
1 answer
719 views

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

How to set currency depending on country's IP, means if customer browse my site from us location then the current currecny and language should be USD & en_US or if customer browse my site from ...
user avatar
1 vote
1 answer
646 views

Magento2.3.2 - Geo IP Location

Is there any plugin available for automatic detect customer current Geo location in Magento2.3.2 ?
user avatar
2 votes
0 answers
140 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: ...
user avatar
1 vote
1 answer
625 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.
user avatar
0 votes
2 answers
262 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 = ...
user avatar
0 votes
1 answer
50 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 ...
user avatar
  • 185
0 votes
1 answer
189 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 ...
user avatar
  • 1,473
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 ...
user avatar
2 votes
1 answer
620 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 ...
user avatar
0 votes
1 answer
59 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 (...
user avatar
  • 21
1 vote
2 answers
3k 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 ...
user avatar
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 ...
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 ...
user avatar
2 votes
2 answers
552 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 ...
user avatar
  • 57
5 votes
5 answers
2k 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 ...
user avatar
6 votes
4 answers
7k 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:...
user avatar
  • 781
0 votes
1 answer
75 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 ...
user avatar
2 votes
0 answers
498 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 * ...
user avatar
  • 1,083
4 votes
1 answer
4k 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?
user avatar
  • 1,083
0 votes
1 answer
796 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 ...
user avatar
0 votes
1 answer
158 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 ...
user avatar
1 vote
1 answer
926 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 ...
user avatar
2 votes
1 answer
152 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 ...
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. ...
user avatar
  • 109
0 votes
1 answer
134 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 ...
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 ...
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 ...
user avatar
  • 6,697
5 votes
2 answers
59 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?
user avatar
  • 306