We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f206f commit ec1c858Copy full SHA for ec1c858
app/code/Magento/Quote/Model/Quote/Address.php
@@ -425,9 +425,11 @@ protected function _populateBeforeSaveData()
425
*/
426
protected function _isSameAsBilling()
427
{
428
+ $quoteSameAsBilling = $this->getQuote()->getShippingAddress()->getSameAsBilling();
429
+
430
return $this->getAddressType() == \Magento\Quote\Model\Quote\Address::TYPE_SHIPPING &&
- ($this->_isNotRegisteredCustomer() ||
- $this->_isDefaultShippingNullOrSameAsBillingAddress());
431
+ ($this->_isNotRegisteredCustomer() || $this->_isDefaultShippingNullOrSameAsBillingAddress()) &&
432
+ ($quoteSameAsBilling || $quoteSameAsBilling === 0 || $quoteSameAsBilling === null);
433
}
434
435
/**
0 commit comments