Quotation Process + Multiple Carts feature integration
Edit on GitHubInstall Feature Core
Prerequisites
To start feature integration, overview and install the necessary features:
Name | Version |
---|---|
Quotation Process | 201907.0 |
Multiple Carts | 201907.0 |
1) Set up Behavior
Register the following plugins:
Plugin | Specification | Prerequisites | Namespace |
---|---|---|---|
MultiCartQuotePersistPlugin |
Creates a new active customer cart. | None | Spryker\Client\MultiCart\Plugin\PersistentCart |
src/Pyz/Client/PersistentCart/PersistentCartDependencyProvider.php
<?php
namespace Pyz\Client\PersistentCart;
use Spryker\Client\PersistentCart\PersistentCartDependencyProvider as SprykerPersistentCartDependencyProvider;
use Spryker\Client\PersistentCartExtension\Dependency\Plugin\QuotePersistPluginInterface;
use Spryker\Client\MultiCart\Plugin\PersistentCart\MultiCartQuotePersistPlugin;
class PersistentCartDependencyProvider extends SprykerPersistentCartDependencyProvider
{
/**
* @return \Spryker\Client\PersistentCartExtension\Dependency\Plugin\QuotePersistPluginInterface
*/
protected function getQuotePersistPlugin(): QuotePersistPluginInterface
{
return new MultiCartQuotePersistPlugin();
}
}
Verification
Make sure that when you converting quote request with status "Ready" to cart, new cart created instead of replacing the existing one.
Thank you!
For submitting the form