Skip to content
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

Added a forced refresh if the user modifies the minicart while being on the cart page #2990

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

fballiano
Copy link
Contributor

The problem is described in issue #2204.

I've checked the body class for the presence of "checkout-cart-index", it should be quite ok.

I've used document.body.classList.contains("checkout-cart-index") functionality that is compatible with more modern browsers (ie10), is it ok with everybody? otherwise we've to use regex like document.body.className.match(/(\s|^)checkout-cart-index(\s|$)/)

This PR fixes the problem when removing the product but also when changing its quantity.

@github-actions github-actions bot added the Template : rwd Relates to rwd template label Jan 21, 2023
@justinbeaty
Copy link
Contributor

I've used document.body.classList.contains("checkout-cart-index") functionality that is compatible with more modern browsers (ie10), is it ok with everybody?

Definitely okay IMO. IE9 is EOL for 3 years now.

@ADDISON74
Copy link
Contributor

LGTM but I will test it tomorrow.

I've been looking through the webserver logs for the last year and I haven't found any monthly records related to IE 9 and 10. Only IE 11 around 20 visits per month, most likely a Windows 7 or 10 user who didn't want to upgrade to a modern browser.

Copy link
Member

@elidrissidev elidrissidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine for me.

Copy link
Contributor

@ADDISON74 ADDISON74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR and the issue is solved. I found no errors in the browser console.

@elidrissidev elidrissidev merged commit 8400955 into OpenMage:1.9.4.x Jan 24, 2023
@fballiano fballiano deleted the issue2204 branch January 24, 2023 13:57
@fballiano
Copy link
Contributor Author

thanks guys, cherrypicked to v20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Template : rwd Relates to rwd template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants