Skip to content

Commit e1936c1

Browse files
authored
Merge pull request #40 from netresearch/CI-238
CI-238: fix address ids
2 parents 8d3f484 + f2cb79c commit e1936c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Checkout/CustomerCheckout.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(
6262
$shippingMethodCode = null,
6363
$paymentMethodCode = null
6464
) {
65-
65+
6666
$this->addressRepository = $addressRepository;
6767
$this->quoteRepository = $quoteRepository;
6868
$this->quoteManagement = $quoteManagement;
@@ -170,7 +170,7 @@ private function saveBilling()
170170
{
171171
$billingAddress = $this->cart->getQuote()->getBillingAddress();
172172
$billingAddress->importCustomerAddressData(
173-
$this->addressRepository->getById($this->getCustomerShippingAddressId())
173+
$this->addressRepository->getById($this->getCustomerBillingAddressId())
174174
);
175175
$billingAddress->save();
176176
}
@@ -179,7 +179,7 @@ private function saveShipping()
179179
{
180180
$shippingAddress = $this->cart->getQuote()->getShippingAddress();
181181
$shippingAddress->importCustomerAddressData(
182-
$this->addressRepository->getById($this->getCustomerBillingAddressId())
182+
$this->addressRepository->getById($this->getCustomerShippingAddressId())
183183
);
184184
$shippingAddress->setCollectShippingRates(true);
185185
$shippingAddress->collectShippingRates();

0 commit comments

Comments
 (0)