fmdd / sylius-marketing-plugin
FMDD marketing plugin for Sylius.
Installs: 3 408
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:sylius-plugin
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-10-13 19:24:54 UTC
README
FM2D - SyliusMarketingBundle
FM2D is a Web Agency publisher of Sylius plugins and open source actor. Since 2016, we strive to produce useful plugins to improve your e-commerce store. FM2D also offers you a first class technical support and customer service.
Summary
Overview
Marketing bundle is use for :
- Add TrustPilot bundle from Setono\SyliusTrustpilotPlugin
- Email cart abandoned or cart not payed
- Notification Proof of purchase
- Add Instagram
TODO :
- Add multiple email marketing
- Add new Notification Type
Installation
Step 1: Download the plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require fmdd/sylius-marketing-plugin
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the plugin
Then, enable the plugin by adding it to the end of the list of registered plugins/bundles
in config/bundles.php
file of your project.
<?php # config/bundles.php return [ // ... Setono\SyliusTrustpilotPlugin\SetonoSyliusTrustpilotPlugin::class => ['all' => true], FMDD\SyliusMarketingPlugin\FMDDSyliusMarketingPlugin::class => ['all' => true], // ... ];
Step 3: Configure the plugin
# config/packages/_sylius.yaml imports: # ... - { resource: "@FMDDSyliusMarketingPlugin/Resources/config/config.yml" }
Step 4: Add the plugin routing to your application
# config/routes/sylius_admin.yaml sylius_marketing_plugin: resource: "@FMDDSyliusMarketingPlugin/Resources/config/routes.yaml"
Step 5: Extend customer and order entities
<?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; }
Add overrides configuration :
# config/packages/_sylius.yml sylius_customer: resources: customer: classes: # If you already have your own CustomerController - use TrustpilotCustomerTrait instead controller: Setono\SyliusTrustpilotPlugin\Controller\CustomerController
Step 6 : Add notification system
... <body> ... {{ sylius_template_event('fmdd.marketing.shop.layout.notification') }} </body>
Reload assets :
php bin/console assets:install
php bin/console sylius:theme:assets:install
You must load orders purchased event notification
$ php bin/console fmdd:notification-order:load
Step 7 : Create notification types
- purchase
- trustpilot
Step 8 : If you want to use Instagram oEmbed
parameters: fmdd_instagram_client_id: 'your_app_id' fmdd_instagram_client_secret: 'your_app_secret'
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 have any questions, feel free to contact us by filling our form on our website or send us an e-mail at contact@fm2d.com with your question(s). We will anwser you as soon as possible !