定制 chapagain/magento2-autocurrency 二次开发

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

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

chapagain/magento2-autocurrency

Composer 安装命令:

composer require chapagain/magento2-autocurrency

包简介

Automatic Currency Switcher Extension for Magento 2

README 文档

README

Automatically switches shop's currency to visitor's local currency - "Magento 2" Extension

Auto Currency extension tracks visitor's IP address and automatically changes the store currency to the visitor's location currency. Visitor can switch to his/her desired currency at any time.

This extension uses Webnet77's Ip2Country IP Address databases for IP Address lookup.

Prerequisite

Enable Multiple Currency on your Magento 2 Store

  1. Login to Magento 2 Admin
  2. Go to STORES -> Configuration -> GENERAL -> Currency Setup -> Currency Options
  3. In Allowed Currencies box, select the currencies that you want to enable on your site/store
  4. Now, go to STORES -> Currency Rates
  5. Import currency rates by clicking the Import button, Or add the rates manually
  6. Then, click the Save Currency Rates button

Installation

Manual Installation

  1. The module's files should be placed in folder: app/code/Chapagain/AutoCurrency
  2. Open terminal/command-prompt
  3. Go to your Magento website’s root directory with the following command:
    • cd /path/to/your/magento/root/directory
  4. Enable the module and clear static content with the following command:
    • php bin/magento module:enable Chapagain_AutoCurrency –clear-static-content
  5. Do setup upgrade with the following command:
    • php bin/magento setup:upgrade

Composer Installation

  1. Go to your Magento website’s root directory with the following command:
    • cd /path/to/your/magento/root/directory
  2. Run the following command:
    • composer require chapagain/magento2-autocurrency
  3. Enable the module and clear static content with the following command:
    • php bin/magento module:enable Chapagain_AutoCurrency –clear-static-content
  4. Do setup upgrade with the following command:
    • php bin/magento setup:upgrade

Configuration Settings

  1. Login to your Magento site's admin
  2. Go to STORES → Settings → Configuration page
  3. On left sidebar, click on CHAPAGAIN EXTENSIONS → Auto Currency menu
  4. From there, you can Enable/Disable the module. The module is enabled by default.

Updating GeoIP Databases

The GeoIP database should be updated from time to time in order to make this extension work accurately.

  1. Download IPV4 CSV file
  2. Extract the file. This will extract IPtoCountry.csv file.
  3. Use Ip2Country lookup classes for PHP to create binary-optimized version of the csv file.
  4. Upload the binary file (.dat file) to your [Module Folder]/geoip/ip2country/ folder.

Links

chapagain/magento2-autocurrency 适用场景与选型建议

chapagain/magento2-autocurrency 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 13, 最近一次更新时间为 2020 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「currency」 「magento」 「switcher」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 chapagain/magento2-autocurrency 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 chapagain/magento2-autocurrency 我们能提供哪些服务?
定制开发 / 二次开发

基于 chapagain/magento2-autocurrency 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 4
  • Forks: 15
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2020-04-04