airmee / magento-2-module
Airmee Magento 2 运输模块
1.0.0
2017-04-21 08:17 UTC
Requires
- php: ~5.5.0|~5.6.0|~7.0.0
- airmee/php-sdk: 1.0.0
- magento/framework: 100.0.*
- magento/module-config: 100.0.*
- magento/module-quote: 100.0.*
- magento/module-shipping: 100.0.*
- magento/module-store: 100.0.*
This package is not auto-updated.
Last update: 2024-09-20 20:00:45 UTC
README
Airmee Magento 2 运输模块
安装
更新 Magento 2 的根 composer.json 以添加对此包的依赖。
这可以通过在 'require' 部分添加以下内容来实现。
"airmee/magento-2-module": "1.0.0"
安装完成后,运行以下命令以启用模块并运行其数据库迁移。
bin/magento module:enable Airmee_Shipping
bin/magento setup:upgrade
配置
可以在商店配置的运输方法部分配置此模块。
如果您没有 JWT Token 和商店 ID,您需要联系 Airmee 支持。
产品尺寸
如果包裹太重,此模块将隐藏其运输方式。
如果需要根据尺寸限制,请修改以下内容
Airmee\Shipping\Model\Carrier:verifyDeliverableMetrics
添加逻辑以比较您的产品的自定义属性与 SDK 响应中已存在的尺寸。
Airmee\Shipping\Observer:execute
调整创建 Item 对象以包括实际尺寸。
兼容性
此模块与 Magento 2.0.x 和 2.1.x 兼容。
此模块与 Magento 2.0 和 2.1 支持的 PHP 版本完全兼容。