src/Frontend/Modules/Commerce/Actions/Cart.php
/**
     * Check if it is allowed to checkout.
     *
     * @throws RedirectException
     */
Check if it is allowed to checkout.
Check if it is allowed to checkout .
private function isAllowedToCheckout(): void
    {
        if (!$this->cart || !$this->cart->isProductsInStock()) {
            $this->redirect(Navigation::getUrlForBlock($this->getModule(), 'Cart'));
        }
    }
private function isAllowedToCheckout ( ) : void { if ( ! $ this -> cart || ! $ this -> cart -> isProductsInStock ( ) ) { $ this -> redirect ( Navigation :: getUrlForBlock ( $ this -> getModule ( ) , 'Cart' ) ) ; } }
Check if it is allowed to checkout.
Check if it is allowed to checkout .