fond-of-oryx/availability-checkout-validator

Availability Checkout Validator module

Maintainers

Package info

github.com/fond-of-oryx/availability-checkout-validator

pkg:composer/fond-of-oryx/availability-checkout-validator

Statistics

Installs: 15 806

Dependents: 0

Suggesters: 0

Stars: 0

2.0.0 2023-01-24 12:59 UTC

This package is auto-updated.

Last update: 2026-02-15 11:32:49 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(),
        ];
    }