Install the Agent Assist + Cart feature
Edit on GitHubThis document describes how to install the Agent Assist + Cart feature.
Prerequisites
To start the feature integration, overview and install the necessary features:
NAME | VERSION | INSTALLATION GUIDE |
---|---|---|
Spryker Core | 202307.0 | Install the Spryker Сore feature |
Agent Assist | 202307.0 | Install the Agent Assist feature |
Cart | 202307.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.
Install related features
Integrate the following related features:
FEATURE | REQUIRED FOR THE CURRENT FEATURE | INSTALLATION GUIDE |
---|---|---|
Agent Assist + Shopping List | Install the Agent Assist + Shopping List feature |
Thank you!
For submitting the form