magento2-geo-store-switcher icon indicating copy to clipboard operation
magento2-geo-store-switcher copied to clipboard

Is this extension working?

Open hezide opened this issue 8 years ago • 12 comments

hezide avatar Jan 14 '17 15:01 hezide

I've tried it, and it seems to not work out of the box. I don't have time to chase down what isn't working, and it seems as though To-Bai.com is offline. So, I'd say no for now.

spyrule avatar Feb 14 '17 21:02 spyrule

I've tested and the extension is working. It changes the view accordingly and so on. But I have a question for the author. Is there any chance it does change the view by city? Like extending the code? Sorry, I'm new to development, but I would like to have a chance to implement it. Thank you for the good module.

gcampedelli avatar Apr 01 '17 14:04 gcampedelli

@gcampedelli thank you for choosing the extension. Yes, the extension works fine. However it has dependency on 'tobai/magento2-geo-ip2', so it has to be installed, enabled and properly configured.

Theoretically it can change store view by city, but requires additional customization. As I said previously the extension depends on GeoIp module, which provides integration with MaxMind GeoIP2 DB. In current implementation store view changes based on country, however it can depend on city.

ytorbyk avatar Apr 01 '17 15:04 ytorbyk

@gcampedelli If you want City level view control, you need to BUY MaxMind Geo-IP 2 City DB (they don't give that level of granularity for free). But it should work the same way as Geo-IP for country, you just need to do more checking and finding. I'd suggest you setup a pre-load page if you are doing it by city, as that level of lookup will slow down your website load times.

spyrule avatar Apr 01 '17 15:04 spyrule

Thanks for the answer guys. I will check a way to parse data from FreeGeo IP, which has an XML endpoint, even if it is not so accurate as MaxMind. Anyway, Maxmind has 77% of accuracy for the country I'm coding. Actually only need the region for shipping purposes. I will show my results here.

gcampedelli avatar Apr 02 '17 13:04 gcampedelli

I had an error, but it was because of my code. The module is OK.

gcampedelli avatar Apr 02 '17 22:04 gcampedelli

I do not know if it is working yet, I have magento 2.1 installed on the local LAN. But i can say that the plugin cause problems with the component manager in magento 2.1. tobai_geostoreswitcher needs to be uninstalled for the manager to work properly again. and you cannot remove tobai_geoip2 at all, while manually removing it causes errors with setup:upgrade

maxedout avatar Apr 17 '17 23:04 maxedout

We can't get the module to work in production. It's like the ObjectManager doesen't load the extension correctly. Magento 2.1.6

conveydk avatar May 19 '17 14:05 conveydk

@conveydk Also, the same problem with ObjectManager in 2.1.9

eugene-shab avatar Jan 09 '18 10:01 eugene-shab

I've found the solution for installation:

  • Add to composer.json just only "tobai/magento2-geo-ip2": "~1.0.0", then make setup:upgrade
  • Add to composer.json just only "tobai/magento2-geo-store-switcher": "^1.1", then make setup:upgrade

For me, after that, it works properly!

eugene-shab avatar Jan 09 '18 20:01 eugene-shab

Sorry that I didn't see this earlier. However at @eugene-shab is correct.

Just so everyone knows while switching automatically is ok, it has known risks with SEO. For this to be a truly usable module a modal window should appear, blocking all actions to the site except switching stores while retaining the original stores content behind it.

To explain further: Say you have a US website, that has auto switching enabled for France. Once this module is enabled, Google comes by to crawl your US site from France. It then sees French content "Duplicate Content" and may even delete pages from the US site which have been previously indexed.

To solve this, one should extend this module to create a static Modal overlay the US store, which has a button which says "We've detected you're in France, please click here to continue" and no other actions. This would prevent a user from going to the US site but would allow Google to crawl the US links as it expects as it's not affected by the overlay which blocks everything. This button would engage the controller action to switch stores.

Just my two cents!

duffner avatar Jan 10 '18 03:01 duffner

The extension and GeoIP2 are updated. Now they should work in production mode too. Sorry, I didn't emphase that GeoIP2 should be enabled and configured for proper work.

ytorbyk avatar Feb 23 '18 23:02 ytorbyk