Marketplace Shipment + Checkout feature integration

Edit on GitHub

This document describes how to integrate the Marketplace Shipment + Checkout feature into a Spryker project.

Install feature core

Follow the steps below to install the Marketplace Shipment + Checkout feature core.

Prerequisites

To start feature integration, integrate the required features:

NAME VERSION INTEGRATION GUIDE
Marketplace Shipment 202108.0 Marketplace Shipment feature integration
Checkout 202108.0 Checkout feature integration

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 \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.