Install the Marketplace Shipment + Customer feature
Edit on GitHubThis document describes how to install the Marketplace Shipment + Customer feature.
Install feature core
Follow the steps below to install the Marketplace Shipment + Customer feature core.
Prerequisites
Install the required features:
NAME | VERSION | INSTALLATION GUIDE |
---|---|---|
Marketplace Shipment | 202410.0 | Install the Marketplace Shipment feature |
Customer | 202410.0 | Install the Customer Account Management feature |
1) Set up behavior
Enable the following behaviors by registering the plugins:
PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
---|---|---|---|
MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin | Sets shipment merchant reference in the initial checkout step to avoid wrong grouping by merchant reference. | Spryker\Yves\MerchantShipment\Plugin\CustomerPage |
src/Pyz/Yves/CustomerPage/CustomerPageDependencyProvider.php
<?php
namespace Pyz\Yves\CustomerPage;
use SprykerShop\Yves\CustomerPage\CustomerPageDependencyProvider as SprykerShopCustomerPageDependencyProvider;
use Spryker\Yves\MerchantShipment\Plugin\CustomerPage\MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin;
class CustomerPageDependencyProvider extends SprykerShopCustomerPageDependencyProvider
{
/**
* @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressStepPreGroupItemsByShipmentPluginInterface>
*/
protected function getCheckoutAddressStepPreGroupItemsByShipmentPlugins(): array
{
return [
new MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin(),
];
}
}
Verification
Make sure that during the checkout steps, items and their shipments have the same merchant reference attached to them.
Thank you!
For submitting the form