Install the Cart + Agent Assist feature

Edit on GitHub

This document describes how to integrate the Agent Assist + Cart feature into a Spryker project.

Prerequisites

To start the feature integration, overview and install the necessary features:

NAME VERSION INTEGRATION GUIDE
Spryker Core 202204.0 Spryker Сore feature integration
Agent Assist 202204.0 Agent Assist feature integration
Cart 202204.0 Install the Cart Glue API

1) Set up behavior

Activate the following plugins:

PLUGIN SPECIFICATION PREREQUISITES NAMESPACE
SanitizeCustomerQuoteImpersonationSessionFinisherPlugin Sanitizes a customer quote. None Spryker\Client\Quote\Plugin\Agent

src/Pyz/Client/Agent/AgentDependencyProvider.php

<?php

namespace Pyz\Client\Agent;

use Spryker\Client\Agent\AgentDependencyProvider as SprykerAgentDependencyProvider;
use Spryker\Client\Quote\Plugin\Agent\SanitizeCustomerQuoteImpersonationSessionFinisherPlugin;

class AgentDependencyProvider extends SprykerAgentDependencyProvider
{
    /**
     * @return \Spryker\Client\AgentExtension\Dependency\Plugin\ImpersonationSessionFinisherPluginInterface[]
     */
    protected function getImpersonationSessionFinisherPlugins(): array
    {
        return [
            new SanitizeCustomerQuoteImpersonationSessionFinisherPlugin(),
        ];
    }
}
Verification

Ensure that, after finishing a customer impersonation, the session quote is empty.

Integrate the following related features:

FEATURE REQUIRED FOR THE CURRENT FEATURE INTEGRATION GUIDE
Agent Assist + Shopping List Agent Assist + Shopping List feature integration