sherlockode/sylius-mondial-relay-plugin
Composer 安装命令:
composer require sherlockode/sylius-mondial-relay-plugin
包简介
Sylius plugin for Mondial Relay.
README 文档
README
Table of Content
Overview
This plugin enables Mondial Relay shipping method on your Sylius website.
Installation
Install the plugin with composer:
$ composer require sherlockode/sylius-mondial-relay-plugin
Complete the configuration:
# config/packages/sherlockode_sylius_mondial_relay.yaml sherlockode_sylius_mondial_relay: wsdl: The mondial relay WSDL merchant_id: Your merchant ID private_key: Your private key
Import routing:
# config/routes.yaml sherlockode_sylius_mondial_relay_plugin: resource: "@SherlockodeSyliusMondialRelayPlugin/Resources/config/routing.xml"
In your Shipment entity, import the PickupPointTrait:
<?php // App/Entity/Shipping/Shipment.php namespace App\Entity\Shipping; use Doctrine\ORM\Mapping as ORM; use Sherlockode\SyliusMondialRelayPlugin\Model\PickupPointTrait; use Sylius\Component\Core\Model\Shipment as BaseShipment; /** * @ORM\Entity * @ORM\Table(name="sylius_shipment") */ class Shipment extends BaseShipment { use PickupPointTrait; }
Don't forget to make a migration or a d:s:u after that
Update your webpack configuration to add entries both in shop config and admin config:
// Shop config Encore // ... .addEntry('sherlockode-mondial-relay', './vendor/sherlockode/sylius-mondial-relay-plugin/src/Resources/public/js/entry.js') // Admin config Encore // ... .addEntry('sherlockode-mondial-relay', './vendor/sherlockode/sylius-mondial-relay-plugin/src/Resources/public/js/admin.js')
Usage
Shipping method configuration
Now you only have to create a new shipping method. For the Shipping charges option, select "Mondial Relay"
Google API integration
In order to show a Google map to select pickup points, you need to enable Google Map API for your token. You can do it in the Google Cloud Console. Then, update the plugin configuration:
# config/packages/sherlockode_sylius_mondial_relay.yaml sherlockode_sylius_mondial_relay: # ... map_provider: google google_api_key: '%env(GOOGLE_API_KEY)%'
Additionally, you may want to enable Google Place API to show places suggestions when searching pickup points.
Open Street Map integration
This plugin also supports Open Street Map. To enable it, you just have to update the map_provider setting in your plugin configuration:
# config/packages/sherlockode_sylius_mondial_relay.yaml sherlockode_sylius_mondial_relay: # ... map_provider: open_street_map
Print expedition tickets
When an order has been placed with Mondial Relay, you can print the expedition ticket from the Sylius admin. Go on the order details page and use the "Print ticket" button.
This feature can be disabled from the bundle configuration:
sherlockode_sylius_mondial_relay: # ... enable_ticket_printing: false
Demo Sylius Shop
We created a demo app with some useful use-cases of plugins! Visit sylius-demo.sherlockode.fr to take a look at it. The admin can be accessed under sylius-demo.sherlockode.fr/admin/login link. Plugins that we have used in the demo:
| Plugin name | GitHub | Sylius' Store |
|---|---|---|
| Advance Content Bundle (ACB) | https://github.com/sherlockode/SyliusAdvancedContentPlugin | - |
| Mondial Relay | https://github.com/sherlockode/SyliusMondialRelayPlugin | - |
| Checkout Plugin | https://github.com/sherlockode/SyliusCheckoutPlugin | - |
| FAQ | https://github.com/sherlockode/SyliusFAQPlugin | - |
Additional resources for developers
To learn more about our contribution workflow and more, we encourage you to use the following resources:
License
This plugin's source code is completely free and released under the terms of the MIT license.
Contact
If you want to contact us, the best way is to fill the form on our website or send us an e-mail to contact@sherlockode.fr with your question(s). We guarantee that we answer as soon as we can!
sherlockode/sylius-mondial-relay-plugin 适用场景与选型建议
sherlockode/sylius-mondial-relay-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.33k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2022 年 03 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sylius」 「sylius-plugin」 「mondial-relay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sherlockode/sylius-mondial-relay-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sherlockode/sylius-mondial-relay-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sherlockode/sylius-mondial-relay-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Implementation of the Omnibus Directive for Sylius application.
Bulk export of sylius resources
Sylius plugin that integrates Addwish
Setono example plugin for Sylius.
Will translate fragments of text automatically
Use price tiers in your Sylius store.
统计信息
- 总下载量: 5.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-22


