Skip to content

Commit 7bf8b54

Browse files
committed
MC-29722: Default shipping address not being honoured
1 parent f9763b6 commit 7bf8b54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Quote/Model/Quote/Address.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
use Magento\Quote\Model\Quote\Address\TotalFactory;
4040
use Magento\Quote\Model\Quote\Item\AbstractItem;
4141
use Magento\Quote\Model\ResourceModel\Quote\Address\Rate\CollectionFactory;
42-
use Magento\SalesRule\Model\Rule;
4342
use Magento\Shipping\Model\CarrierFactoryInterface;
4443
use Magento\Store\Api\Data\StoreInterface;
4544
use Magento\Store\Model\ScopeInterface;
@@ -119,7 +118,7 @@
119118
* @method float getShippingInclTax()
120119
* @method Address setShippingInclTax(float $value)
121120
* @method float getBaseShippingInclTax()
122-
* @method Rule[] getCartFixedRules()
121+
* @method \Magento\SalesRule\Model\Rule[] getCartFixedRules()
123122
* @method int[] getAppliedRuleIds()
124123
* @method Address setBaseShippingInclTax(float $value)
125124
*

app/code/Magento/Quote/Model/ResourceModel/Quote.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function loadByCustomerId($quote, $customerId)
102102

103103
if ($data) {
104104
$quote->setData($data);
105+
$quote->setOrigData();
105106
}
106107

107108
$this->_afterLoad($quote);
@@ -124,6 +125,7 @@ public function loadActive($quote, $quoteId)
124125
$data = $connection->fetchRow($select);
125126
if ($data) {
126127
$quote->setData($data);
128+
$quote->setOrigData();
127129
}
128130

129131
$this->_afterLoad($quote);
@@ -148,6 +150,7 @@ public function loadByIdWithoutStore($quote, $quoteId)
148150

149151
if ($data) {
150152
$quote->setData($data);
153+
$quote->setOrigData();
151154
}
152155
}
153156

0 commit comments

Comments
 (0)