数量数字 / 商业-Shipmondo
Craft Commerce 4 的 Shipmondo 集成
4.1.0
2024-09-09 12:20 UTC
Requires
- craftcms/cms: ^4.0
- craftcms/commerce: ^4.0
- firebase/php-jwt: ^6.2
This package is auto-updated.
Last update: 2024-09-09 12:21:00 UTC
README
此插件提供了 Shipmondo 对 Craft Commerce 的集成。
要求
此插件需要 Craft CMS 4.0.0 和 Craft Commerce 4.0.0 或更高版本。
安装
您可以从插件商店或使用 Composer 安装此插件。
从插件商店
转到项目控制面板中的插件商店,搜索“Shipmondo”。然后在其模态窗口中点击“安装”按钮。
使用 Composer
打开您的终端并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require quantity-digital/commerce-shipmondo # tell Craft to install the plugin ./craft install/plugin commerce-shipmondo
设置
在设置页面填写所需的设置后,此插件将在 Craft 的默认运费编辑器屏幕上添加一个新的字段,您可以在其中将 Craft 中的运费方法连接到 Shipmondo 中的运费方法。
Craft 和 Shipmondo 之间的所有同步都自动使用 Craft Queue 处理。
提示:账户名称、密钥令牌和 webhook 令牌可以设置为环境变量。有关更多信息,请参阅 Craft 文档中的 环境配置。
用法
要在前端获取交货点,您可以在添加运费地址后调用 '/shipmondo/services/list-service-points' 端点,以根据所选的运费地址接收可用的交货点。
Webhook 支持
此插件目前支持以下 webhooks
- shipments/created