A Magento 2 implementation for my Bina Commerce brand.
This little development allows the redirection of the customers to the respective version of your store considering its geolocalization.
Warning To be able to use this implementation, it is necessary that your store is integrated with Cloudflare using the IP geolocation feature.
To proceed with the installation of your module, you need to go to the document root of your Magento installation and run the following commands:
composer require bina/module-geo-ip
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:clean
bin/magento cache:flush
Note To execute
bin/magento setup:static-content:deploy
you need to list all the languages of your store/s using the ISO-639 format. Also, if you are using a platform mode different than production, you need to execute the command using the-f
flag:bin/magento setup:static-content:deploy -f
(https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-static-view.html).
Note The command
bin/magento cache:flush
is optional (https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-cache.html#config-cli-subcommands-cache-clean).
In order to find documentation on the use and related issues, visit the official page of this development.