magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Create an account when guest checkout is disabled redirects to customer dashboard #32741

Closed VincentMarmiesse closed 4 months ago

VincentMarmiesse commented 3 years ago

Preconditions (*)

  1. Magento 2.4.2
  2. Configuration Allow Guest Checkout : No
  3. Configuration Redirect Customer to Account Dashboard after Logging in : No

Steps to reproduce (*)

  1. As a guest, add a product to cart
  2. Go to shopping cart page and click on Proceed to checkout button
  3. Click on Create an Account button
  4. Create an account

Expected result (*)

  1. Customer should be redirected to checkout page as he previously clicked on Proceed to checkout

Actual result (*)

  1. Customer is redirected to his dashboard

Linked issues

Issue #6015 looks similar but is when the user logs in.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

Hi @VincentMarmiesse. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

VincentMarmiesse commented 3 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 3 years ago

Hi @VincentMarmiesse. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 3 years ago

Hi @VincentMarmiesse, here is your Magento Instance: https://e415c2560de01b8ec37e9da218e7232d-2-4-develop.instances.magento-community.engineering Admin access: https://e415c2560de01b8ec37e9da218e7232d-2-4-develop.instances.magento-community.engineering/admin_3ea5 Login: af6314ad Password: dec36f3f87bf

VincentMarmiesse commented 3 years ago

I confirm the issue on your vanilla Magento instance: when I click to Proceed to checkout and create an account, I am redirected to the dashboard.

m2-assistant[bot] commented 3 years ago

Hi @engcom-Oscar. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Oscar commented 3 years ago

Hi @VincentMarmiesse ! Thank you for your report. Unfortunately, we are not able to reproduce the issue on a fresh 2.4-develop by following steps from this ticket. Looks like we missing some precondition details. May you please recheck issue description and update it.

VincentMarmiesse commented 3 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 3 years ago

Hi @VincentMarmiesse. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 3 years ago

Hi @VincentMarmiesse, here is your Magento Instance: https://e415c2560de01b8ec37e9da218e7232d-2-4-develop.instances.magento-community.engineering Admin access: https://e415c2560de01b8ec37e9da218e7232d-2-4-develop.instances.magento-community.engineering/admin_6e25 Login: 8f7152e5 Password: 5ea7614fc5cb

VincentMarmiesse commented 3 years ago

Hi @engcom-Oscar,

Here are the steps I just did to reproduce the issue on the vanilla instance:

  1. Log in to the back-office
  2. Go to Stores > Configuration > Sales > Checkout > Checkout Options and set Allow Guest Checkout to No.
  3. Refresh configuration cache
  4. On the front, add any product to shopping cart
  5. Go to shopping cart, click on Proceed to Checkout, then Create an Account
  6. Create an account

After creating the account, I am redirected to the customer dashboard instead of the checkout.

VincentMarmiesse commented 3 years ago

@engcom-Oscar here is a link to the video: https://www.awesomescreenshot.com/video/3380771?key=9d53c0138f2cf9d5ac0a904e8b3dbde9

engcom-Oscar commented 3 years ago

Hi @VincentMarmiesse ! I locally installed latest 2.4-develop branch of Magento 2 and failed again to reproduce this issue. Here my video https://www.awesomescreenshot.com/video/3391054?key=237630c69c66ed29b882e71600381601

VincentMarmiesse commented 3 years ago

Hi @engcom-Oscar,

After seeing your video, I double checked and I found it works when you click on Proceed to checkout on the mini cart (like you did), but not from the shopping cart page (like I did).

Can you try these steps on a new session (private navigation for instance):

  1. Add a product to cart
  2. Go to shopping cart page
  3. Click on Proceed to checkout button and create an account

Thank you!

magento-engcom-team commented 3 years ago

:white_check_mark: Confirmed by @engcom-Oscar Thank you for verifying the issue. Based on the provided information internal tickets MC-42490 were created

Issue Available: @engcom-Oscar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

yogesh-valiya commented 3 years ago

@magento I'm working on it

yogesh-valiya commented 2 years ago

I guess this will be fixed by this PR

engcom-Bravo commented 4 months ago

Hi @VincentMarmiesse,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is no more reproducible.Kindly refer the attached video.

https://github.com/magento/magento2/assets/51680745/2835de00-7f13-48a4-b008-378849e5397f

Customer is redirecting to checkout page as he previously clicked on Proceed to checkout

Hence we are closing this issue.

Thanks.