fmdd / sylius-marketing-plugin
FMDD 为 Sylius 定制的营销插件。
v0.29.05
2022-06-13 07:36 UTC
Requires
- php: ^7.4
- ext-curl: *
- ext-intl: *
- ext-json: *
- espresso-dev/instagram-basic-display-php: ^1.1
- knplabs/knp-time-bundle: ^1.13
- setono/sylius-trustpilot-plugin: ^1.1
- sylius/sylius: ^1.7
- symfony/http-client: ^5.2
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^6.0
- phpstan/phpstan-doctrine: ^0.11
- phpstan/phpstan-shim: ^0.12
- phpstan/phpstan-webmozart-assert: ^0.11
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^3.0
- symfony/browser-kit: ^3.4|^4.3
- symfony/debug-bundle: ^3.4|^4.3
- symfony/dotenv: ^4.3
- symfony/intl: ^3.4|^4.3
- symfony/web-profiler-bundle: ^3.4|^4.3
- symfony/web-server-bundle: ^3.4|^4.3
- dev-master / 1.6.x-dev
- v0.29.05
- v0.29.04
- v0.29.03
- v0.29.02
- v0.29.01
- v0.29.0
- v0.28.98
- v0.28.97
- v0.28.96
- v0.28.95
- v0.28.94
- v0.28.93
- v0.28.92
- v0.28.91
- v0.28.9
- v0.28.8
- v0.28.7
- v0.28.6
- v0.28.5
- v0.28.4
- v0.28.3
- v0.28.2
- v0.28.1
- v0.28.0
- v0.27.9
- v0.27.8
- v0.27.7
- v0.27.6
- v0.27.5
- v0.27.4
- v0.27.3
- v0.27.2
- v0.27.1
- v0.27.0
- v0.26.9
- v0.26.8
- v0.26.7
- v0.26.6
- v0.26.5
- v0.26.4
- v0.26.3
- v0.26.2
- v0.26.1
- v0.26.0
- v0.25.0
- v0.24.0
- v0.23.0
- v0.22.0
- v0.21.0
- v0.20.0
- v0.19.0
- v0.18
- v0.17
- v0.16
- v0.15
- v0.14
- v0.13
- v0.12
This package is auto-updated.
Last update: 2024-09-13 19:05:10 UTC
README
FM2D - SyliusMarketingBundle
FM2D 是 Sylius 插件的出版商和开源活动者。自 2016 年以来,我们致力于开发实用的插件以提升您的电子商务商店。FM2D 还为您提供一流的技术支持和客户服务。
摘要
概览
营销插件用于
- 从 Setono\SyliusTrustpilotPlugin 添加 TrustPilot 插件
- 发送购物车放弃或未付款的电子邮件
- 购买证明通知
- 添加 Instagram
待办事项
- 添加多个电子邮件营销
- 添加新的通知类型
安装
步骤 1:下载插件
打开命令行,进入您的项目目录并执行以下命令以下载此包的最新稳定版本
$ composer require fmdd/sylius-marketing-plugin
此命令要求您全局安装了 Composer,具体请参阅 Composer 文档中的安装章节。
步骤 2:启用插件
然后,通过将其添加到项目中 config/bundles.php
文件中已注册的插件/包列表的末尾来启用该插件。
<?php # config/bundles.php return [ // ... Setono\SyliusTrustpilotPlugin\SetonoSyliusTrustpilotPlugin::class => ['all' => true], FMDD\SyliusMarketingPlugin\FMDDSyliusMarketingPlugin::class => ['all' => true], // ... ];
步骤 3:配置插件
# config/packages/_sylius.yaml imports: # ... - { resource: "@FMDDSyliusMarketingPlugin/Resources/config/config.yml" }
步骤 4:将插件路由添加到您的应用程序
# config/routes/sylius_admin.yaml sylius_marketing_plugin: resource: "@FMDDSyliusMarketingPlugin/Resources/config/routes.yaml"
步骤 5:扩展客户和订单实体
<?php // src/Entity/Customer.php namespace App\Entity\Customer; use Doctrine\ORM\Mapping as ORM; use Setono\SyliusTrustpilotPlugin\Model\CustomerTrustpilotAwareInterface; use Setono\SyliusTrustpilotPlugin\Model\CustomerTrait as TrustpilotCustomerTrait; use Sylius\Component\Core\Model\Customer as BaseCustomer; /** * @ORM\Table(name="sylius_customer") * @ORM\Entity() */ class Customer extends BaseCustomer implements CustomerTrustpilotAwareInterface { use TrustpilotCustomerTrait; }
<?php // src/Entity/Order.php namespace App\Entity\Order; use Doctrine\ORM\Mapping as ORM; use Setono\SyliusTrustpilotPlugin\Model\OrderTrustpilotAwareInterface; use Setono\SyliusTrustpilotPlugin\Model\OrderTrait as TrustpilotOrderTrait; use Sylius\Component\Core\Model\Order as BaseOrder; /** * @ORM\Table(name="sylius_order") * @ORM\Entity() */ class Order extends BaseOrder implements OrderTrustpilotAwareInterface { use TrustpilotOrderTrait; }
添加覆盖配置
# config/packages/_sylius.yml sylius_customer: resources: customer: classes: # If you already have your own CustomerController - use TrustpilotCustomerTrait instead controller: Setono\SyliusTrustpilotPlugin\Controller\CustomerController
步骤 6:添加通知系统
... <body> ... {{ sylius_template_event('fmdd.marketing.shop.layout.notification') }} </body>
重新加载资源
php bin/console assets:install
php bin/console sylius:theme:assets:install
您必须加载已购买订单的事件通知
$ php bin/console fmdd:notification-order:load
步骤 7:创建通知类型
- 购买
- Trustpilot
步骤 8:如果您想使用 Instagram oEmbed
parameters: fmdd_instagram_client_id: 'your_app_id' fmdd_instagram_client_secret: 'your_app_secret'
开发者额外资源
要了解更多关于我们的贡献流程和其他信息,我们鼓励您使用以下资源
许可证
此插件的源代码完全免费,并按照 MIT 许可证的条款发布。
联系方式
如果您有任何问题,请通过填写我们网站上的表格或在 我们的网站 或发送电子邮件至 contact@fm2d.com(带您的问题)与我们联系。我们将尽快回答您!