gravita/notify-when-available
Composer 安装命令:
composer require gravita/notify-when-available
包简介
A Sylius plugin that enables the option of setting a future date when the product will be available. Users can add an email to notify then when the product can be purchased
README 文档
README
Plugin Skeleton
Installation
-
Run
composer require gravita/notify-when-available. -
Add the plugin to AppKernel.php:
public function registerBundles(): array { return array_merge(parent::registerBundles(), [ // ... new \Gravita\SyliusNotifyWhenAvailablePlugin\GravitaSyliusNotifyWhenAvailablePlugin(), ]); }
-
Add the required resource files to your config.yml:
imports: # ... - { resource: "@GravitaSyliusNotifyWhenAvailablePlugin/Resources/config/config.yml" } - { resource: "@GravitaSyliusNotifyWhenAvailablePlugin/Resources/config/resources.yml" }
-
Add the bundle routing file to your routing.yml
gravita_notify_when_available_shop: resource: "@GravitaSyliusNotifyWhenAvailablePlugin/Resources/config/app/shop_routing.yml"
-
Update your database:
php bin\console doctrine:schema:update --force
Usage
Running plugin tests
Once installed, the plugin adds two fields to the product variant form "Details" tab:
- Available from: this fields holds the message showed to the user if this product variant is not checked as "Available"
- Available for purchase: if this fields is not checked the message that is set on "Available from" will bee shown to the user. With this message will be a form to register an email on the notification list of the product variant.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-28