Merchant Portal - Marketplace Merchant Portal Product Offer Management + Merchant Portal Order Management feature integration

Edit on GitHub

This document describes how to integrate the Merchant Portal - Marketplace Merchant Portal Product Offer Management + Merchant Portal Order Management feature into a Spryker project.

Prerequisites

To start feature integration, install the required features:

NAME VERSION INTEGRATION GUIDE
Marketplace Merchant Portal Product Offer Management 202108.0 Marketplace Merchant Portal Product Offer Management feature integration
Merchant Portal - Marketplace Order Management 202108.0 Marketplace Merchant Portal Order Management feature integration

1) Set up behavior

Enable the following behaviors by registering the plugins:

PLUGIN SPECIFICATION PREREQUISITES NAMESPACE
ProductOfferMerchantOrderItemTableExpanderPlugin Expands MerchantOrderItemTable with Merchant SKU and Product offer reference columns configuration. Spryker\Zed\ProductOfferMerchantPortalGui\Communication\Plugin\SalesMerchantPortalGui

src/Pyz/Zed/SalesMerchantPortalGui/SalesMerchantPortalGuiDependencyProvider.php

<?php

namespace Pyz\Zed\SalesMerchantPortalGui;

use Spryker\Zed\ProductOfferMerchantPortalGui\Communication\Plugin\SalesMerchantPortalGui\ProductOfferMerchantOrderItemTableExpanderPlugin;
use Spryker\Zed\SalesMerchantPortalGui\SalesMerchantPortalGuiDependencyProvider as SprykerSalesMerchantPortalGuiDependencyProvider;

class SalesMerchantPortalGuiDependencyProvider extends SprykerSalesMerchantPortalGuiDependencyProvider
{
    /**
     * @return \Spryker\Zed\SalesMerchantPortalGuiExtension\Dependency\Plugin\MerchantOrderItemTableExpanderPluginInterface[]
     */
    protected function getMerchantOrderItemTableExpanderPlugins(): array
    {
        return [
            new ProductOfferMerchantOrderItemTableExpanderPlugin(),
        ];
    }
}
Verification

Make sure that the ProductOfferMerchantOrderItemTableExpanderPlugin is set up by opening http://mp.mysprykershop.com/sales-merchant-portal-gui/orders. Click on any of the orders and check that the Merchant Reference and Product Offer SKU are present.