vaachar/sylius-archivable-products-plugin
Composer 安装命令:
composer require vaachar/sylius-archivable-products-plugin
包简介
A sylius plugin to add archiving to products.
关键字:
README 文档
README
Plugin to make products archivable when they shouldn't be available anymore. Also includes the option to archive products automatically when they reach a stock of 0 on all variants.
Quickstart Installation
- Require plugin via Composer
composer require vaachar/sylius-archivable-products-plugin
- Inlcude config.yaml in
_sylius.yaml
- { resource: "@SyliusArchivableProductsPlugin/Resources/config/config.yaml" }
- Use trait and add interface to
src/Entity/Product/Product.php
class Product extends BaseProduct implements IsArchivableProductInterface
{
use ArchivableProductTrait;
...
}
- Execute migrations
bin/console doctrine:migrations:migrate
Usage
This plugin adds a new menu entry to the side menu when creating or editing a product called Archive.
There you can activate the Archive when out of stock option to let this plugin automatically disable a product and archive it. You can also manually enter a date/time to archive the product there.
On the admin product listing page you can also quickly archive a product via the Archive action button.
Archiving a product will hide it from the admin product listing so that your shop administrators can easily identify if a disabled product is only temporarily disabled or if it is archived and thus discontinued. You can view all archived products by selecting the respective filter.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-20


