We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

    I focused merely on the solution and I just changed the function validateForCart
    In vendor/magento/module-quote/Model/QuoteAddressValidator.php file :

    from :

     public function validateForCart(CartInterface $cart, AddressInterface $address): void
        {
            $this->doValidate($address, $cart->getCustomerIsGuest() ? null : $cart->getCustomer()->getId());
        }

    to :

    public function validateForCart(CartInterface $cart, AddressInterface $address): void
        {
            $this->doValidate($address, $cart->getCustomerId() ? $cart->getCustomer()->getId() : null );
        }

    It worked for me very well. Let me know if this trick helped you too.

    Fill the below form if you need any Magento relate help/advise/consulting.

    With Only Agency that provides a 24/7 emergency support.

      Get a Free Quote