定制 tete2soja/magento2-geoip 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tete2soja/magento2-geoip

最新稳定版本:1.1.5

Composer 安装命令:

composer require tete2soja/magento2-geoip

包简介

Customer country lookup based off their ip address

README 文档

README

Magento Extension Provider

Magento2 GeoIp Extension by MagePal

Automatically detect your visitor country code base on their Ip Address in Magento2.

Base Module for

  • GeoIp Country Redirect with Varnish Support by MagePal
  • Quick Checkout by MagePal.

Usage

    public function __construct(
        ...
        \MagePal\GeoIp\Service\GeoIpService $geoIpService,
        ....
    ) {
        ...
        $this->geoIpService = $geoIpService;
    }
    
    
    $countryCode = $this->geoIpService->getCountryByIpAddress('128.0.0.101');
    //or
    $countryCode = $this->geoIpService->getCountry();
    

Step 1

Using Composer (recommended)
composer require magepal/magento2-geoip
Manually (not recommended)
  • Download the extension
  • Unzip the file
  • Create a folder {Magento 2 root}/app/code/MagePal/GeoIp
  • Copy the content from the unzip folder
  • Install GeoIP2 Package composer require geoip2/geoip2:~2.0

Step 2 - Enable extension ("cd" to {Magento root} folder)

  php -f bin/magento module:enable --clear-static-content MagePal_GeoIp
  php -f bin/magento setup:upgrade

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

Support

If you encounter any problems or bugs, please open an issue on GitHub.

Need help setting up or want to customize this extension to meet your business needs? Please email support@magepal.com and if we like your idea we will add this feature for free or at a discounted rate.

Magento 2 Extensions

© MagePal LLC. | www.magepal.com

统计信息

  • 总下载量: 294
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-12-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固