carriyo / module-shipment
此模块将您的电子商务与Carriyo平台集成。
1.2.9
2023-10-02 15:26 UTC
This package is not auto-updated.
Last update: 2024-09-30 19:50:21 UTC
README
``carriyo/module-shipment``
主要功能
此模块将您的电子商务与Carriyo平台集成。
安装
* = 在生产环境中请使用 --keep-generated
选项
类型 1: Zip 文件
- 将压缩文件解压到
app/code/Carriyo
- 将解压的文件夹重命名为
Shipment
- 此时您应该有以下文件夹结构
app
|-- code
|-- Carriyo
|-- Shipment
- 通过运行
php bin/magento module:enable Carriyo_Shipment
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 * - 通过运行
php bin/magento cache:flush
清除缓存
类型 2: Composer
- 通过运行
composer config repositories.repo.magento.com composer https://repo.magento.com/
将 composer 仓库添加到配置中 - 通过运行
composer require carriyo/module-shipment:"^1.2.9"
安装模块 composer。如果您想使用 Carriyo 模块的前一个版本,请替换版本号。 - 通过运行
php bin/magento module:enable Carriyo_Shipment
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 * - 通过运行
php bin/magento cache:flush
清除缓存
规格说明
以下设置可以在 商店 -> 配置 -> Carriyo -> 设置
中找到
- API 凭据
- API 域名 - (必需)
- 租户 ID - (必需)
- 商户 ID - (必需)
- API 密钥 - (必需)
- 客户端 ID - (必需)
- 客户端密钥 - (必需)
- 取货地址
- 位置代码 - (必需)
- Carriyo 映射
- 运输方式 - (必需) 您的运输方式标签与 Carriyo 运输类型的映射。例如:
Flat Rate=STANDARD,Free Shipping=EXPRESS
- 允许的订单状态(货到付款): 允许更新 Carriyo 的 Magento 状态的 Magento 状态列表。例如:
pending,processing
- 允许的订单状态(其他支付类型): 允许更新 Carriyo 的非货到付款订单的 Magento 状态的 Magento 状态列表。例如:
processing
- 订单状态映射:将 Carriyo 状态映射到更新 Magento 订单状态。例如:
shipped=complete,cancelled=canceled
- 运货参考前缀:为 Carriyo 运货参考添加可选前缀。在您的 Magento 订单号在商家之间不唯一时使用此选项。
- 运输方式 - (必需) 您的运输方式标签与 Carriyo 运输类型的映射。例如:
在本地环境中运行
为了运行此环境,请确保您已安装 docker
和 docker-compose
- 下载此仓库:Clean docker Magento2
- 之后,您需要下载一个 Magento2 项目
- 将您的 Magento 项目移动到 docker 仓库中的
src
- 现在您只需运行
docker-compose up -d
以正常启动项目。