Install the Company Account + Merchant B2B Contract Requests feature
Edit on GitHubThis document describes how to install the Company Account + Merchant B2B Contract Requests feature.
Prerequisites
Install the required features:
NAME | VERSION | INSTALLATION GUIDE |
---|---|---|
Company Account | 202404.0 | Install the Company Account feature |
Merchant B2B Contract Requests | 202404.0 | Install the Merchant B2B Contract Requests feature |
1) Set up behavior
Enable the following behaviors by registering the plugins:
PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
---|---|---|---|
AssigneeCompanyBusinessUnitAddressMerchantRelationRequestExpanderPlugin | Expands MerchantRelationRequestCollectionTransfer with an assignee company business unit addresses. |
Spryker\Zed\CompanyUnitAddress\Communication\Plugin\MerchantRelationRequest |
src/Pyz/Zed/MerchantRelationRequest/MerchantRelationRequestDependencyProvider.php
<?php
namespace Pyz\Zed\MerchantRelationRequest;
use Spryker\Zed\CompanyUnitAddress\Communication\Plugin\MerchantRelationRequest\AssigneeCompanyBusinessUnitAddressMerchantRelationRequestExpanderPlugin;
use Spryker\Zed\MerchantRelationRequest\MerchantRelationRequestDependencyProvider as SprykerMerchantRelationRequestDependencyProvider;
class MerchantRelationRequestDependencyProvider extends SprykerMerchantRelationRequestDependencyProvider
{
/**
* @return list<\Spryker\Zed\MerchantRelationRequestExtension\Dependency\Plugin\MerchantRelationRequestExpanderPluginInterface>
*/
protected function getMerchantRelationRequestExpanderPlugins(): array
{
return [
new AssigneeCompanyBusinessUnitAddressMerchantRelationRequestExpanderPlugin(),
];
}
}
Verification
- In the Merchant Portal, go to B2B Contracts > Merchant Relation Requests.
- Select a merchant relation request. Make sure that, in the Company Details section, business units with their names and addresses are displayed.
Thank you!
For submitting the form