Agent Assist + Cart feature integration

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 master Spryker Сore feature integration
Agent Assist master Agent Assist feature integration
Cart master Glue API: Cart feature integration

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 Agent Assist feature integration
Agent Assist + Shopping List Agent Assist + Shopping List feature integration