Install the Product feature + Dynamic Multistore
Edit on GitHubThis document describes how to install Dynamic Multistore + the Product feature.
Install feature core
Prerequisites
Install the required features:
NAME | VERSION |
---|---|
Spryker Core | 202410.0 |
Product | 202410.0 |
Set up behavior
Register the following plugins:
PLUGIN | SPECIFICATION | NAMESPACE |
---|---|---|
StoreProductCategoryListActionViewDataExpanderPlugin | Expands Overview of Category Filters page with infromation about stores. | Spryker\Zed\StoreGui\Communication\Plugin\ProductCategoryFilterGui |
src/Pyz/Zed/Product/ProductDependencyProvider.php
<?php
namespace Pyz\Zed\ProductCategoryFilterGui;
use Spryker\Zed\ProductCategoryFilterGui\ProductCategoryFilterGuiDependencyProvider as SprykerProductCategoryFilterGuiDependencyProvider;
use Spryker\Zed\StoreGui\Communication\Plugin\ProductCategoryFilterGui\StoreProductCategoryListActionViewDataExpanderPlugin;
class ProductCategoryFilterGuiDependencyProvider extends SprykerProductCategoryFilterGuiDependencyProvider
{
/**
* @return array<\Spryker\Zed\ProductCategoryFilterGuiExtension\Dependency\Plugin\ProductCategoryListActionViewDataExpanderPluginInterface>
*/
protected function getProductCategoryListActionViewDataExpanderPlugins(): array
{
return [
...
new StoreProductCategoryListActionViewDataExpanderPlugin(),
...
];
}
}
Verification
Make sure that the following data is displayed on the Product Category Filter page:
- Store
- Category
Thank you!
For submitting the form