tavy315/sylius-product-subscriptions-plugin

Send notifications to your customers when a product returns in stock

v0.4.1 2022-12-04 07:12 UTC

This package is auto-updated.

Last update: 2024-04-04 09:51:18 UTC


README

68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67

Sylius Product Subscriptions Plugin

Plugin that add the possibility to receive an email notification when a product return in stock

Features

Subscribe to get a Notification when a product return in stock

Subscription for simple product Subscription for simple product

View your subscriptions in the apposite section of your account

See the apposite section in the my account

View your client subscriptions in the apposite admin section

See the apposite section in the admin account

Requirements

  • PHP ^7.4
  • Sylius ~1.8.0

Installation

  1. Run composer require tavy315/sylius-product-subscriptions-plugin.

  2. Add the plugin to the config/bundles.php file:

Tavy315\SyliusProductSubscriptionsPlugin\Tavy315SyliusProductSubscriptionsPlugin::class => ['all' => true],
  1. 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"
  1. Import required config in your config/packages/tavy315_sylius_product_subscriptions_plugin.yaml file:
imports:
   - { resource: "@Tavy315SyliusProductSubscriptionsPlugin/Resources/config/app/config.yaml" }
  1. 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