dmitrykazak / customer-ip
Magento 模块保存并显示注册过程中使用的客户的 IP 地址。
v1.2.1
2018-12-23 21:17 UTC
Requires
- php: >=5.4
- magento-hackathon/magento-composer-installer: *
This package is auto-updated.
Last update: 2024-09-16 18:09:52 UTC
README
Magento 模块保存并显示注册过程中使用的客户的 IP 地址。默认使用 ipapi
安装
使用 modman
$cd /path/to/magento
modman clone https://github.com/dmitrykazak/customer-ip.git
通过 Composer
composer require dmitrykazak/customer-ip
手动安装
1) Copy all the files folders to the root folder of your Magento installation
2) Clear the cache.
使用方法
模块安装后,前往 Magento 管理面板
系统 -> 配置 -> 客户 IP
如果您想在“管理客户”中使用谷歌地图,请将您的公钥插入到“Google API Key”字段中
如何使用自定义的 IP 数据提供者
将以下代码添加到您的模块的 config.xml
文件中
<ip> <services> <custom_name> <name>Custom Name</name> <model>custom_data_provider</model> </custom_name> </services> </ip>
在管理面板的“客户 IP”部分,您可以选择您自定义的 IP 数据提供者。