fond-of-oryx / availability-checkout-validator
Availability Checkout Validator module
2.0.0
2023-01-24 12:59 UTC
Requires
- php: >=8.0
Requires (Dev)
- fond-of-oryx/availability-cart-data-extender: ^1.0.0 || ^2.0.0
- spryker/checkout-extension: ^1.1.0
- spryker/zed-request: ^3.3.0
README
Provides plugin for checkout flow. The plugin checks the quote items for availability and if the items are sellable. If some item is not available or sellable the customer gets redirected to the cart page.
Installation
composer require fond-of-oryx/availability-checkout-validator
Configuration
Register plugin AvailabilityCheckoutPreCheckPlugin
in CheckoutDependencyProvider
/**
* @return \Spryker\Client\CheckoutExtension\Dependency\Plugin\CheckoutPreCheckPluginInterface[]
*/
protected function getCheckoutPreCheckPlugins(): array
{
return [
...
new AvailabilityCheckoutPreCheckPlugin(),
];
}