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([
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 }
Original file line number Diff line number Diff 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 ]);
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments