flagbit / shopware-maintenance
Shopware 扩展,易于维护。
v2.1.0
2024-04-08 12:52 UTC
Requires
- shopware/core: ^6.5|^6.6
- symfony/console: ^6.3|^7.0
- symfony/framework-bundle: ^6.3|^7.0
This package is auto-updated.
Last update: 2024-09-11 07:34:47 UTC
README
Flagbit Shopware Maintenance
Shopware 扩展,易于维护
安装
步骤 1: 下载扩展包
打开命令行界面,进入项目目录,并执行以下命令以下载此扩展的最新稳定版本
$ composer require flagbit/shopware-maintenance
步骤 2: 启用扩展
然后,将扩展添加到项目 config/bundles.php
文件中已注册的扩展列表中,以启用扩展
// config/bundles.php return [ // ... Flagbit\Shopware\ShopwareMaintenance\ShopwareMaintenance::class => ['all' => true], ];
使用方法
config/plugins.php
文件定义了哪些 Shopware 插件应该启用或禁用。
示例
# config/plugins.php <?php declare(strict_types=1); # be a were this is a sorted list because of plugin dependencies may occur return [ 'SwagMarkets' => false, # disabled 'SwagPayPal' => true, # enabled 'SwagPlatformDemoData' => false, # disabled ];
config/config.yaml
文件定义了要设置的 Shopware 插件配置值。
示例
使用 global 对所有销售渠道。或者使用一个销售渠道翻译的 name 来更新配置。
我们不使用销售渠道的 uuid,因为这可能在不同的环境中不同。
# config/config.yaml "global": "core.listing.productsPerPage": 48 "Store Name": "core.listing.productsPerPage": 48 "core.listing.allowBuyInListing": false "core.listing.showReview": false "Headless": "core.listing.productsPerPage": 48
命令
bin/console config:sync # synchronizes configuration values as defined in config/config.yaml bin/console plugin:refresh # ensure plugins classes are loaded before plugin:sync execution bin/console plugin:sync # synchronizes plugin enable/disable status as defined in config/plugins.php
故障排除
由 Flagbit GmbH & Co. KG 热情支持 ❤️