Skip to content

Commit 0861a30

Browse files
committed
MC-21756: Persistent Shopping Cart Issue
- Magento should process the order with the persistent information including tier pricing
1 parent 0dcb19e commit 0861a30

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/form/element/email.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ define([
185185
* @returns {Boolean} - initial visibility state.
186186
*/
187187
resolveInitialPasswordVisibility: function () {
188+
if (checkoutData.getInputFieldEmailValue() !== '' && checkoutData.getCheckedEmailValue() === '') {
189+
return true;
190+
}
191+
188192
if (checkoutData.getInputFieldEmailValue() !== '') {
189193
return checkoutData.getInputFieldEmailValue() === checkoutData.getCheckedEmailValue();
190194
}

app/code/Magento/Persistent/Model/QuoteManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public function convertCustomerCartToGuest()
121121
->setCustomerEmail(null)
122122
->setCustomerFirstname(null)
123123
->setCustomerLastname(null)
124-
->setCustomerGroupId(\Magento\Customer\Api\Data\GroupInterface::NOT_LOGGED_IN_ID)
125124
->setIsPersistent(false);
126125
$quote->getAddressesCollection()->walk('setCustomerAddressId', ['customerAddressId' => null]);
127126
$quote->getAddressesCollection()->walk('setCustomerId', ['customerId' => null]);

app/code/Magento/Persistent/Test/Unit/Model/QuoteManagerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ public function testConvertCustomerCartToGuest()
258258
->method('setCustomerFirstname')->with(null)->willReturn($this->quoteMock);
259259
$this->quoteMock->expects($this->once())
260260
->method('setCustomerLastname')->with(null)->willReturn($this->quoteMock);
261-
$this->quoteMock->expects($this->once())->method('setCustomerGroupId')
262-
->with(\Magento\Customer\Model\GroupManagement::NOT_LOGGED_IN_ID)
261+
$this->quoteMock->expects($this->never())->method('setCustomerGroupId')
263262
->willReturn($this->quoteMock);
264263
$this->quoteMock->expects($this->once())
265264
->method('setIsPersistent')->with(false)->willReturn($this->quoteMock);

0 commit comments

Comments
 (0)