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
Reset quantity value to min value after adding to cart #11661
Conversation
themes/_core/js/product.js
Outdated
return; | ||
} | ||
const $productActions = $('.product-actions'); | ||
const $quantityWantedInput = $productActions.find('#quantity_wanted:first'); |
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.
#quantity_wanted:first
it's an idea, you don't need to add :first
and select it from .product-actions
, you need to fix the duplicate id :/
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.
I actually simply copied the existing code, but indeed the :first
is useless since there is only one element with this id. I corrected it in other places as well.
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.
Wrong selectors
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.
❤️
@jolelievre I see changes requested but the issue is in to be tested column, is it ready for QA or you need to make changes ? |
Yes, changes have been merged in the meantime. I think it's safer if I rebase it before testing. |
230ef44
to
0c47453
Compare
0c47453
to
c71e5a9
Compare
This change is