Migration guide - StockGui

Edit on GitHub

Upgrading from version 1.* to version 2.0.0

In this new version of the StockGui module, we have added support of the warehouse per store. You can find more details about the changes on the StockGui module release page.

Estimated migration time: 5 min

To upgrade to the new version of the module, do the following:

  1. Follow the steps in the individual migration guide for the Stock module. For more information, see Migration Guide - Stock.

  2. Upgrade the StockGui module to the new version:

composer require spryker/stock-gui:"^2.0.0" --update-with-dependencies
  1. Generate the transfer objects:
console transfer:generate
  1. Register the following form plugins:
StoreRelationToggleFormTypePlugin Represents a store relation toggle form based on stores registered in the system. None Spryker\Zed\Store\Communication\Plugin\Form



namespace Pyz\Zed\StockGui;

use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface;
use Spryker\Zed\StockGui\StockGuiDependencyProvider as SprykerStockGuiDependencyProvider;
use Spryker\Zed\Store\Communication\Plugin\Form\StoreRelationToggleFormTypePlugin;

class StockGuiDependencyProvider extends SprykerStockGuiDependencyProvider
     * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface
    protected function getStoreRelationFormTypePlugin(): FormTypeInterface
        return new StoreRelationToggleFormTypePlugin();