Product Group + Product Labels feature integration
Edit on GitHubInstall feature core
Follow the steps below to install Product group + Product labels feature core.
Prerequisites
To start feature integration, overview and install the necessary features:
NAME | VERSION |
---|---|
Product Group | 202212.0 |
Product Labels | 202212.0 |
Set up behavior
Register the following plugin:
PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
---|---|---|---|
ProductLabelProductViewExpanderPlugin | Expands ProductViewTransfer with labels. |
None | SprykerShop\Yves\ProductLabelWidget\Plugin\ProductGroupWidget |
<?php
namespace Pyz\Yves\ProductGroupWidget;
use SprykerShop\Yves\ProductGroupWidget\ProductGroupWidgetDependencyProvider as SprykerShopProductGroupWidgetDependencyProvider;
use SprykerShop\Yves\ProductLabelWidget\Plugin\ProductGroupWidget\ProductLabelProductViewExpanderPlugin;
class ProductGroupWidgetDependencyProvider extends SprykerShopProductGroupWidgetDependencyProvider
{
/**
* @return \SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewExpanderPluginInterface[]
*/
protected function getProductViewExpanderPlugins(): array
{
return [
new ProductLabelProductViewExpanderPlugin(),
];
}
}
Verification
Make sure that the product label on a product abstract card changes correctly after hovering over a color selector.
Thank you!
For submitting the form