Skip to content

Commit e9f805f

Browse files
committed
ACP2E-3646: Addresses selection is not saved when we "Check Out with Multiple Addresses"
1 parent 041580b commit e9f805f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/code/Magento/Multishipping/Model/Checkout/Type/Multishipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ protected function _init()
299299
$addresses = $quote->getAllAddresses();
300300
$defaultShippingId = null;
301301
foreach ($addresses as $address) {
302-
if ($address->getAllItems()) {
302+
if ($address->getAllItems() && !$defaultShippingId) {
303303
$defaultShippingId = $address->getCustomerAddressId();
304304
}
305305
$quote->removeAddress($address->getId());

app/code/Magento/Multishipping/Test/Mftf/Test/StorefrontProcessMultishippingCheckoutWhenCartPageIsOpenedInAnotherTabTest.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
6-
*/
3+
/**
4+
* Copyright 2019 Adobe
5+
* All Rights Reserved.
6+
*/
77
-->
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -88,7 +88,7 @@
8888
<switchToNextTab stepKey="switchToNextTab"/>
8989
<!-- Click 'Continue to Billing Information' and 'Go to Review Your Order' -->
9090
<actionGroup ref="StorefrontGoToBillingInformationActionGroup" stepKey="redirectToSelectAddressAfterReset"/>
91-
<seeOptionIsSelected selector="{{StorefrontCheckoutShippingMultipleAddressesSection.selectedMultipleShippingAddress('1')}}" userInput="{{US_Address_NY.street[1]}}" stepKey="checkAddressIsReset"/>
91+
<seeOptionIsSelected selector="{{StorefrontCheckoutShippingMultipleAddressesSection.selectedMultipleShippingAddress('1')}}" userInput="{{UK_Not_Default_Address.street[0]}}" stepKey="checkAddressIsReset"/>
9292
<actionGroup ref="StorefrontCheckoutShippingSelectMultipleAddressesActionGroup" stepKey="selectMultipleAddressesAfterReset">
9393
<argument name="firstAddress" value="{{UK_Not_Default_Address.street[0]}}"/>
9494
<argument name="secondAddress" value="{{US_Address_NY.street[1]}}"/>

app/code/Magento/Multishipping/Test/Unit/Model/Cart/MultishippingClearItemAddressTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2016 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

0 commit comments

Comments
 (0)