Agent Assist + Shopping List feature integration guide
Edit on GitHubThis document describes how to integrate the Agent Assist + Shopping List 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 Core feature integration |
Agent Assist | master | Agent Assist feature integration |
Shopping List | master | Shopping lists feature integration |
1) Set up behavior
Activate the following plugins:
PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
---|---|---|---|
SanitizeCustomerShoppingListsImpersonationSessionFinisherPlugin | Removes a customer shopping list collection from the session. | None | Spryker\Client\ShoppingListSession\Plugin\Agent |
src/Pyz/Client/Agent/AgentDependencyProvider.php
<?php
namespace Pyz\Client\Agent;
use Spryker\Client\Agent\AgentDependencyProvider as SprykerAgentDependencyProvider;
use Spryker\Client\ShoppingListSession\Plugin\Agent\SanitizeCustomerShoppingListsImpersonationSessionFinisherPlugin;
class AgentDependencyProvider extends SprykerAgentDependencyProvider
{
/**
* @return \Spryker\Client\AgentExtension\Dependency\Plugin\ImpersonationSessionFinisherPluginInterface[]
*/
protected function getImpersonationSessionFinisherPlugins(): array
{
return [
new SanitizeCustomerShoppingListsImpersonationSessionFinisherPlugin(),
];
}
}
Verification
Ensure that, after finishing customer impersonation, the session shopping list collection 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 + Cart | Agent Assist + Cart feature integration |
Thank you!
For submitting the form