Model/Service/OrderService.php
protected function disabledQuoteAddressValidation(Quote $quote) {
        $billingAddress = $quote->getBillingAddress();
        $billingAddress->setShouldIgnoreValidation(true);

        if (!$quote->getIsVirtual()) {
            $shippingAddress = $quote->getShippingAddress();
            $shippingAddress->setShouldIgnoreValidation(true);

            if (!$billingAddress->getEmail()) {
                $billingAddress->setSameAsBilling(1);
            }
        }
    }
protected function disabledQuoteAddressValidation(Quote $quote) {
        $billingAddress = $quote->getBillingAddress();
        $billingAddress->setShouldIgnoreValidation(true);

        if (!$quote->getIsVirtual()) {
            $shippingAddress = $quote->getShippingAddress();
            $shippingAddress->setShouldIgnoreValidation(true);

            if (!$billingAddress->getEmail()) {
                $billingAddress->setSameAsBilling(1);
            }
        }
    }
protected function disabledQuoteAddressValidation ( Quote $ quote ) { $ billingAddress = $ quote -> getBillingAddress ( ) ; $ billingAddress -> setShouldIgnoreValidation ( true ) ; if ( ! $ quote -> getIsVirtual ( ) ) { $ shippingAddress = $ quote -> getShippingAddress ( ) ; $ shippingAddress -> setShouldIgnoreValidation ( true ) ; if ( ! $ billingAddress -> getEmail ( ) ) { $ billingAddress -> setSameAsBilling ( 1 ) ; } } }
Disables the address validation for the given quote instance.

@param Quote $quote
Disables the address validation for the given quote instance .