Magento2: logging-in in order to checkout when guest checkout is disabled

Created on 5 Aug 2016  ·  8Comments  ·  Source: magento/magento2

Preconditions

  1. Magento version v2.1
  2. 2.

Steps to reproduce

  1. set-up magento with these options:
  2. Allow Guest Checkout = NO
  3. Require Customer To Be Logged In To Checkout = YES
  4. Add a product to the cart
  5. click the "Go To Checkout" button in the header cart
  6. when the pop-up appears, sign in

Expected result

  1. One would expect that you are automatically redirected to the checkout after logging in (you did choose to "go to checkout"...). Even when you go to the cart via "view cart" first and then click "proceed to checkout", the behavior is the same... It doesn't seem logical to have to click the button a second time after signing in because you stay on the same page after sign-in...

Actual result

  1. After signing in the pop-up disappears but you stay on the page you where on before signing in.
Checkout Clear Description Confirmed Format is valid Ready for Work P3 PR Created Reproduced on 2.1.x Reproduced on 2.2.x Reproduced on 2.3.x S3

Most helpful comment

I'm unable to locate the configuration option "Require Customer To Be Logged In To Checkout" which is mentioned here above. However, regardless of this setting, this issue is still there. I'm going to pick this up (MM17BE)

All 8 comments

Thank you for the report. Our internal issue is MAGETWO-58082.

internal issue MAGETWO-58082.

I'm unable to locate the configuration option "Require Customer To Be Logged In To Checkout" which is mentioned here above. However, regardless of this setting, this issue is still there. I'm going to pick this up (MM17BE)

Fix is on the way with changes in 2 files: Magento_Customer/js/view/authentication-popup.js and vendor/magento/module-customer/Block/Account/AuthenticationPopup.php. Prepping PR.

Hi,
Any news on this?

Hi @ivan-koliadynskyy. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [x] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
  • [x] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


Issue was reproducible only in case of login with dialog from cart page by clicking "Proceed to Checkout" button. Cause of issue is missing "login_redirect" with checkout page url value in cookie. In all other cases login_redirect added before login and as result redirect work well.

Was this page helpful?
0 / 5 - 0 ratings