-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Created config used for showing/hiding clear cart button on the shopping cart view page. #27917
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
Created config used for showing/hiding clear cart button on the shopping cart view page. #27917
Conversation
Hi @Neos2007. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @Neos2007, thank you for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also cover changes with MFTF tests?
a296a8a
to
273d28b
Compare
@magento run all tests |
1 similar comment
@magento run all tests |
Hi @nuzil, thank you for the review. |
Hi @nuzil, thank you for the review. |
@magento create issue |
✔️ QA Passed Manual testing scenario:
Actual Result: ✔️ "Clear Shopping Cart" button is not rendered. Luma theme Blank theme
Luma theme Blank theme |
@magento run Semantic Version Checker |
Pull Request state was updated. Re-review required.
Hi @Neos2007, thank you for your contribution! |
Created config used for showing/hiding a clear cart button on the shopping cart view page. Modified styles in the luma theme which hide the clear cart button.
Description (*)
By default button for clearing shopping cart ("Clear Shopping Cart") is rendered on the shopping cart page to the left of the "Update Shopping Cart" button but it is hidden for the Luma theme (due to styles).
This PR adds stores configuration which is used to determine is clear cart action is enabled.
Configuration Path:
Tab SALES -> section Checkout -> group Shopping Cart -> field select Show "Clear Shopping Cart" button on the cart page (default value is "No"):

Checking this configuration is used in the template of "\Magento\Checkout\Block\Cart\Grid" block for identifying to render or not "Clear Shopping Cart" button (will be rendered only if the mentioned config is set to "Yes").
Also modified CSS rule in Luma theme styles which hides the "Clear Shopping Cart" button.
Manual testing scenarios (*)
Contribution checklist (*)
Resolved issues: