Install the Marketplace Shipment + Checkout feature
Edit on GitHubThis document describes how to install the Marketplace Shipment + Checkout feature.
Install feature core
Follow the steps below to install the Marketplace Shipment + Checkout feature core.
Prerequisites
Install the required features:
NAME | VERSION | INSTALLATION GUIDE |
---|---|---|
Marketplace Shipment | 202404.0 | Install the Marketplace Shipment feature |
Checkout | 202404.0 | Install the Checkout feature |
1) Set up behavior
Enable the following behaviors by registering the plugins:
PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
---|---|---|---|
MerchantShipmentCheckoutPageStepEnginePreRenderPlugin | Copies all item merchant references to their attached shipment merchant reference before rendering checkout steps. | Spryker\Yves\MerchantShipment\Plugin\CheckoutPage |
src/Pyz/Yves/CheckoutPage/CheckoutPageDependencyProvider.php
<?php
namespace Pyz\Yves\CartPage;
use SprykerShop\Yves\CheckoutPage\CheckoutPageDependencyProvider as SprykerShopCheckoutPageDependencyProvider;
use Spryker\Yves\MerchantShipment\Plugin\CheckoutPage\MerchantShipmentCheckoutPageStepEnginePreRenderPlugin;
class CheckoutPageDependencyProvider extends SprykerShopCheckoutPageDependencyProvider
{
/**
* @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\StepEngine\CheckoutPageStepEnginePreRenderPluginInterface>
*/
protected function getCheckoutPageStepEnginePreRenderPlugins(): array
{
return [
new MerchantShipmentCheckoutPageStepEnginePreRenderPlugin(),
];
}
}
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