Plugin that add the possibility to receive an email notification when a product return in stock
- PHP
^7.4
- Sylius
~1.8.0
-
Run
composer require tavy315/sylius-product-subscriptions-plugin
. -
Add the plugin to the
config/bundles.php
file:
Tavy315\SyliusProductSubscriptionsPlugin\Tavy315SyliusProductSubscriptionsPlugin::class => ['all' => true],
- Import the plugin routes by creating a file in
config/routes/tavy315_sylius_product_subscriptions_plugin.yaml
with the following content:
tavy315_sylius_product_subscriptions_plugin:
resource: "@Tavy315SyliusProductSubscriptionsPlugin/Resources/config/routing.yaml"
- Import required config in your
config/packages/tavy315_sylius_product_subscriptions_plugin.yaml
file:
imports:
- { resource: "@Tavy315SyliusProductSubscriptionsPlugin/Resources/config/app/config.yaml" }
- Finish the installation by updating the database schema and installing assets:
bin/console doctrine:migrations:diff
bin/console doctrine:migrations:migrate
bin/console assets:install
bin/console sylius:theme:assets:install