Agent Assist + Cart feature integration
Edit on GitHubThis 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 | 202108.0 | Spryker Сore feature integration |
Agent Assist | 202108.0 | Agent Assist feature integration |
Cart | 202108.0 | 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.
Related features
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 |
Thank you!
For submitting the form