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.5k stars 9.3k forks source link

Unable to place order after applying discount code in review & payment checkout step and if this affects shipping method selected previously #33697

Closed emiliatereanu closed 2 years ago

emiliatereanu commented 3 years ago

Preconditions (*)

  1. Magento 2.4.2

Steps to reproduce (*)

  1. Enable free shipping delivery method with condition minimum order amount value 200 ( for example)
  2. Create a cart price rule with voucher code that gives a fixed amount
  3. Add product(s) to cart so that cart amount is greater or equal than 200
  4. Proceed to checkout, fill address, then select the free shipping delivery method.
  5. Proceed to payment step. Choose a payment method, Check/Money order for example
  6. Apply discount code, making sure now the total amount is less than what free shipping requires.
  7. Try to place order.
  8. User gets an error "The shipping method is missing. Select the shipping method and try again." Message fades after a few seconds.

Expected result (*)

  1. User is redirected to previous Shipping step and is informed to select one of the available delivery methods.

Actual result (*)

  1. User is stuck in review & payment step and is displayed an error message, that fades after a few seconds: "The shipping method is missing. Select the shipping method and try again."
  2. actual_result_issue

Additional information

  1. Mentioned in https://github.com/magento/magento2/issues/29938

    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 @emiliatereanu. 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

emiliatereanu commented 3 years ago

@magento give me 2.4-develop instance

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

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

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

Hi @emiliatereanu, here is your Magento Instance: https://05583d095a9f04bca87282551c8254f7-2-4-develop.instances.magento-community.engineering Admin access: https://05583d095a9f04bca87282551c8254f7-2-4-develop.instances.magento-community.engineering/admin_f13b Login: 418d0c8d Password: 0d8a220de4e3

m2-assistant[bot] commented 3 years ago

Hi @engcom-Hotel. 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:

emiliatereanu commented 3 years ago

I confirm this is reproducing on 2.4-develop issue_reproducing_develop

m2-assistant[bot] commented 3 years ago

Hi @engcom-Echo. 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-Echo commented 3 years ago

@magento give me 2.4-develop instance

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

Hi @engcom-Echo. Thank you for your request. I'm working on Magento instance for you.

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

Hi @engcom-Echo, here is your Magento Instance: https://05583d095a9f04bca87282551c8254f7-2-4-develop.instances.magento-community.engineering Admin access: https://05583d095a9f04bca87282551c8254f7-2-4-develop.instances.magento-community.engineering/admin_e429 Login: e11900e8 Password: ec6977b389d4

github-jira-sync-bot commented 3 years ago

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/AC-937 is successfully created for this GitHub issue.

m2-assistant[bot] commented 3 years ago

:white_check_mark: Confirmed by @engcom-Echo. Thank you for verifying the issue.
Issue Available: @engcom-Echo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

engcom-Echo commented 3 years ago

This issue is reproducible on 2.4-develop branch, with the given steps to reproduce in the issue description. Would like to highlight few points w.r.t issue

  1. The Error message displayed to the user "The shipping method is missing. Select the shipping method and try again." , seems very confusing from user perspective, considering the fact that the user had already selected his/her shipping method on the previous(shipping) page.
  2. In the scenario mentioned in the issue, the user has to be redirected back to the page where he/she can choose other shipping methods.
  3. Also in the scenario mentioned in the issue if the user uses the back button from the browser and navigate back from the review & payments page to the shipping page, the free shipping method which the user had earlier selected is missing from the choices(as the coupon has been applied by now), without any message or indications to the user, which could be perplexing.
Kannakiraj123 commented 3 years ago

@magento I am working on this

rahimimo commented 2 years ago

Hi, has there been any update on this?

VivekShingala commented 2 years ago

Hi, has there been any update on this?

Yeah, waiting on this since long.

Usik2203 commented 2 years ago

@magento I am working on this

glo71317 commented 2 years ago

Since long this issue is open. So, Internal team is started working on this and will complete soon

engcom-Hotel commented 2 years ago

Hello @emiliatereanu,

As I can see this issue got fixed in the scope of the internal Jira ticket AC-937 by the internal team Related commits: https://github.com/magento/magento2/commit/fd7e45e945796afcb39ef96c57121f494d651754

Based on the Jira ticket, the target version is 2.4.6.

Thanks

mibbin commented 1 year ago

The issue is still persist in the 2.4.6 also.

Just checked with 2.4.6

Screenshot 2023-03-17 at 10 52 58 AM