Install the Inventory Management + Marketplace Product feature
Edit on GitHubThis document describes how to install the Marketplace Product + Inventory Management feature.
Install feature core
Follow the steps below to install the Marketplace Product + Inventory Management feature core.
Prerequisites
Install the required features:
NAME | VERSION | INSTALLATION GUIDE |
---|---|---|
Spryker Core | 202311.0 | Install the Spryker Core Glue API |
Marketplace Merchant | 202311.0 | Install the Marketplace Merchant feature |
Inventory Management | 202311.0 | Install the Inventory Management feature |
Set up behavior
Enable the following behaviors by registering the plugins:
PLUGIN | DESCRIPTION | PREREQUISITES | NAMESPACE |
---|---|---|---|
MerchantProductAvailabilityAbstractTableQueryCriteriaExpanderPlugin | Expands QueryCriteriaTransfer with QueryJoinTransfer for filtering by idMerchant. | Spryker\Zed\MerchantProductGui\Communication\Plugin\AvailabilityGui | |
MerchantProductAvailabilityViewActionViewDataExpanderPlugin | Expands view data for product availability with merchant data. | Spryker\Zed\MerchantProductGui\Communication\Plugin\AvailabilityGui |
src/Pyz/Zed/AvailabilityGui/AvailabilityGuiDependencyProvider.php
<?php
namespace Pyz\Zed\AvailabilityGui;
use Spryker\Zed\AvailabilityGui\AvailabilityGuiDependencyProvider as SprykerAvailabilityGuiDependencyProvider;
use Spryker\Zed\MerchantProductGui\Communication\Plugin\AvailabilityGui\MerchantProductAvailabilityAbstractTableQueryCriteriaExpanderPlugin;
use Spryker\Zed\MerchantProductGui\Communication\Plugin\AvailabilityGui\MerchantProductAvailabilityViewActionViewDataExpanderPlugin;
class AvailabilityGuiDependencyProvider extends SprykerAvailabilityGuiDependencyProvider
{
/**
* @return array<\Spryker\Zed\AvailabilityGuiExtension\Dependency\Plugin\AvailabilityViewActionViewDataExpanderPluginInterface>
*/
protected function getAvailabilityViewActionViewDataExpanderPlugins(): array
{
return [
new MerchantProductAvailabilityViewActionViewDataExpanderPlugin(),
];
}
/**
* @return array<\Spryker\Zed\AvailabilityGuiExtension\Dependency\Plugin\AvailabilityAbstractTableQueryCriteriaExpanderPluginInterface>
*/
protected function getAvailabilityAbstractTableQueryCriteriaExpanderPlugins(): array
{
return [
new MerchantProductAvailabilityAbstractTableQueryCriteriaExpanderPlugin(),
];
}
}
Verification
Make sure that you can filter product availabilities by merchant at http://zed.de.demo-spryker.com/product-management
.
Thank you!
For submitting the form