Skip to content

Minicart is closed on element initialization instead of on element click #34405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HenKun opened this issue Oct 21, 2021 · 8 comments
Closed
Assignees
Labels
Area: Cart & Checkout Component: Checkout Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Progress: dev in progress Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@HenKun
Copy link

HenKun commented Oct 21, 2021

Summary of the issue

In the current implementation the closeMinicart function is executed as soon as the "Proceed Checkout Button" gets initialized, instead of when it is clicked.

Information on your environment

Magento 2.4.1, but code is same in current master.

Steps to reproduce

  • Add product to cart
  • Open Javascript debugging
  • Break on function closeMinicart
  • Reload page
  • Notice how the function is executed, when the button is initialized, instead of beeing clicked

Solutiion

The click handler must be given as anonymous function:

click: function() { closeMinicart(); }

Additional Info

Reproducable on 2.4-develop
JS_debugger

Steps followed:

  1. Launch frontend ( Magento 2.4 Develop)
  2. Add an item to cart
  3. Go to chrome browser console
  4. Select 'Source'
  5. Put a Debugging point for closeMinicart function
  6. Reload the page

Actual results:
In the current implementation the closeMinicart function is executed as soon as the "Proceed Checkout Button" gets initialized

Expected result:
In the current implementation the closeMinicart function is executed as soon as the "Proceed Checkout Button" gets initialized instead of when it is clicked.

@m2-assistant
Copy link

m2-assistant bot commented Oct 21, 2021

Hi @HenKun. Thank you for your report.
To speed up processing of this issue, make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

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

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

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

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

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

@m2-assistant
Copy link

m2-assistant bot commented Oct 21, 2021

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

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

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

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

Page not found · GitHub · GitHub
Skip to content
404 “This is not the web page you are looking for”
@engcom-Delta
Copy link
Contributor

Hi @HenKun,
We tried to reproduce the issue on Magento 2.4 Develop .it is reproducible. Hence added 'Issue confirmed'
Please find the attached snapshot for reference.
JS_debugger

Steps followed:

  1. Launch frontend ( Magento 2.4 Develop)
  2. Add an item to cart
  3. Go to chrome browser console
  4. Select 'Source'
  5. Put a Debugging point for closeMinicart function
  6. Reload the page

Actual results:
In the current implementation the closeMinicart function is executed as soon as the "Proceed Checkout Button" gets initialized

Expected result:
In the current implementation the closeMinicart function is executed as soon as the "Proceed Checkout Button" gets initialized instead of when it is clicked.

@engcom-Delta engcom-Delta added Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch and removed Issue: ready for confirmation labels Oct 22, 2021
@engcom-Delta engcom-Delta added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: ready for confirmation labels Oct 22, 2021
@github-jira-sync-bot
Copy link

❌ Something went wrong. Cannot create Jira issue.

@engcom-Alfa engcom-Alfa added Reported on 2.4.x Indicates original Magento version for the Issue report. Area: Cart & Checkout and removed Area: Frontend Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Oct 22, 2021
@engcom-Alfa engcom-Alfa added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: ready for confirmation labels Oct 22, 2021
@github-jira-sync-bot
Copy link

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

@m2-assistant
Copy link

m2-assistant bot commented Oct 22, 2021

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

@engcom-Alfa engcom-Alfa added the Priority: P3 May be fixed according to the position in the backlog. label Nov 2, 2021
@HenKun
Copy link
Author

HenKun commented Aug 30, 2023

Any news on this?

@engcom-Bravo
Copy link
Contributor

Hi @HenKun,

Thanks for your reporting and collaboration.

We have tried to reproduce the issue in Latest 2.4-develop instance and the issue is no more reproducible.kindly refer the screenshots.

Image

Hence we are closing this issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Cart & Checkout Component: Checkout Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Progress: dev in progress Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
None yet
Development

No branches or pull requests

5 participants