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

Allow quantity of "0" in cart to remove item #2266

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

sacr3dc0w
Copy link
Contributor

@sacr3dc0w sacr3dc0w commented Sep 20, 2022

What?

Currently, when you type in a quantity 0, you receive an error alert letting you know that's not an accepted value. This PR allows 0 so the customer can remove the line item from the cart without taking a separate action like clicking the minus button or the delete link.

Screenshots

BEFORE

01.before.mov

AFTER

02.after.mov

Copy link
Contributor

@BC-krasnoshapka BC-krasnoshapka left a comment

Choose a reason for hiding this comment

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

Code looks good. @bc-as what do you think about this feature?

@bc-as
Copy link
Contributor

bc-as commented Oct 6, 2022

This looks great, @sacr3dc0w! I'm on board to get this merged - @BC-krasnoshapka

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

Successfully merging this pull request may close these issues.

None yet

3 participants