Discontinued Products + Product Labels feature integration

Edit on GitHub
You are browsing a previous version of the document. The latest version is 202212.0.

Install Feature Core

Follow the steps below to install the feature core.


To start feature integration, overview, and install the necessary features:

Name Version
Discontinued Products 202009.0
Product Labels 202009.0
Spryker Core 202009.0

1) Import Data

Follow the steps to import product label data:

The following imported entities will be used as a product label in Spryker OS.

Prepare data according to your requirements using the following demo data:


  1. Run the command to import data:
console data:import product-label

Ensure that the configured data has been added to the spy_product_label table in the database.

2) Set up Behaviour

Set up the following behavior:

Plugin Specification Prerequisites Namespace
ProductDiscontinuedLabelUpdaterPlugin Returns the list of relations of product labels to abstract products to assign or deassign product labels for. The results are used to persist product label relation changes into the database. The plugin is called by the ProductLabelRelationUpdaterConsole command. None Spryker\Zed\ProductDiscontinuedProductLabelConnector\Communication\Plugin



namespace Pyz\Zed\ProductLabel;

use Spryker\Zed\ProductLabel\ProductLabelDependencyProvider as SprykerProductLabelDependencyProvider;
use Spryker\Zed\ProductDiscontinuedProductLabelConnector\Communication\Plugin\ProductDiscontinuedLabelUpdaterPlugin;

class ProductLabelDependencyProvider extends SprykerProductLabelDependencyProvider
     * @return \Spryker\Zed\ProductLabel\Dependency\Plugin\ProductLabelRelationUpdaterPluginInterface[]
    protected function getProductLabelRelationUpdaterPlugins()
        return [
            new ProductDiscontinuedLabelUpdaterPlugin(),

Ensure that, on the Storefront, the Discontinued product label is displayed on the Catalog and Product Details pages for all the products to which it is assigned.