fond-of-oryx/availability-checkout-validator

Availability Checkout Validator module

2.0.0 2023-01-24 12:59 UTC

This package is auto-updated.

Last update: 2024-03-27 13:45:48 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(),
        ];
    }