fond-of-oryx/availability-checkout-validator

Availability Checkout Validator module

1.1.0 2021-09-30 11:08 UTC

This package is auto-updated.

Last update: 2021-09-30 12:21:56 UTC


README

license

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(),
        ];
    }