-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 configuration to enable/disable Clear Shopping Cart action in storefront #28594
Added configuration to enable/disable Clear Shopping Cart action in storefront #28594
Conversation
…ing cart view page. Modified styles in the luma theme which hide clear cart buton. Created functional test for testing showing/hiding clear cart button on the cart page.
…ackend configuration label.
…onfiguration for display of clear shopping cart button
…tton display configuration with modal confirm widget
….com:jacotabio/magento2 into 108_clear-shopping-cart-button-configuration
…ping_cart constant
Hi @jacotabio. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
Hi @jacotabio,
|
app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js
Outdated
Show resolved
Hide resolved
Fixed it |
Thanks for the review @dobooth. I just updated the designs on the story description |
…ck in shopping-cart.js and fix Grid.php PHPdoc long description
… _confirmClearCart for a simple and concise function naming
…ntainer using flex
…r error must have one blank line between short and long description
@jacotabio We have good news about this PR! We have approval on the System Changes (Minor) in Semantic Version Checker. We still need to refactor this code to remove the Class Changes as we discussed in our DMs on Slack (make constant private, move constant and method to new View Model class). After that, we should be good to go on moving this forward with Ready for Testing! |
Internal Approval Ticket: https://jira.corp.magento.com/browse/MC-35122 |
…shopping cart modal incorrect wording string
….com:joctabio/magento2 into 108_clear-shopping-cart-button-configuration
@magento run all tests |
Approved based on demo on July 24 |
…t action in storefront #28594
Hi @joctabio, thank you for your contribution! |
Description (*)
Added admin configuration to enable/disable Clear Shopping Cart action with added confirmation modal when clicked.
The native Clear Shopping Cart action is hidden in Luma via CSS, this PR will remove the CSS hidden styling from the theme and create a configuration in the admin panel to control the display.
Added Configuration:
Added Behaviour:
Fixes Issue(s)
https://github.com/magento/partners-magento2b2b/issues/108
Related Pull Requests
#27917
Manual testing scenarios (*)
Questions or comments
Do these changes require functional tests? If so, I would need assistance with writing the tests.
Contribution checklist (*)
Approval Ticket
https://jira.corp.magento.com/browse/MC-35122
Test Plan
Manual checks for ticket
Automated MFTF Tests
** (see PR MFTF comments)
Manual Hip Tests
No new tests