File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Checkout/view/frontend/web/js/view/form/element Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,10 @@ define([
185
185
* @returns {Boolean } - initial visibility state.
186
186
*/
187
187
resolveInitialPasswordVisibility : function ( ) {
188
+ if ( checkoutData . getInputFieldEmailValue ( ) !== '' && checkoutData . getCheckedEmailValue ( ) === '' ) {
189
+ return true ;
190
+ }
191
+
188
192
if ( checkoutData . getInputFieldEmailValue ( ) !== '' ) {
189
193
return checkoutData . getInputFieldEmailValue ( ) === checkoutData . getCheckedEmailValue ( ) ;
190
194
}
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ public function convertCustomerCartToGuest()
121
121
->setCustomerEmail (null )
122
122
->setCustomerFirstname (null )
123
123
->setCustomerLastname (null )
124
- ->setCustomerGroupId (\Magento \Customer \Api \Data \GroupInterface::NOT_LOGGED_IN_ID )
125
124
->setIsPersistent (false );
126
125
$ quote ->getAddressesCollection ()->walk ('setCustomerAddressId ' , ['customerAddressId ' => null ]);
127
126
$ quote ->getAddressesCollection ()->walk ('setCustomerId ' , ['customerId ' => null ]);
Original file line number Diff line number Diff line change @@ -258,8 +258,7 @@ public function testConvertCustomerCartToGuest()
258
258
->method ('setCustomerFirstname ' )->with (null )->willReturn ($ this ->quoteMock );
259
259
$ this ->quoteMock ->expects ($ this ->once ())
260
260
->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 ' )
263
262
->willReturn ($ this ->quoteMock );
264
263
$ this ->quoteMock ->expects ($ this ->once ())
265
264
->method ('setIsPersistent ' )->with (false )->willReturn ($ this ->quoteMock );
You can’t perform that action at this time.
0 commit comments