-
Notifications
You must be signed in to change notification settings - Fork 86
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
fix: disable add-to-basket when quantity is zero #1066
fix: disable add-to-basket when quantity is zero #1066
Conversation
b51b7b7
to
36c0153
Compare
d2abe1b
to
3d8d6e4
Compare
36c0153
to
b9e0d4a
Compare
3d8d6e4
to
5abd271
Compare
5abd271
to
b330280
Compare
It works in the most cases. But there is a problem for "Add To Order Template" for retail sets (sku: 201807198 for example). In this case the sku is set by the quantity of the parent product. In this solution the quantity of the parent will be updated with the sum of quantities for each child. This is the reason why for the sku: 201807198 4 products will be added to the order template. A solution could be to move the logic to detect the quantity of all children to the product-add-to-basket component. |
This sounds an awful lot like missing functionality in the ICM references here: #748
That would mix concerns in my opinion. 🤔 |
@Eisie96 sorry, I misunderstood your comment. Yes, if a retail set is added to an order template from the detail page, the quantities are wrong. I'll fix something. 😅 |
b330280
to
5b857dd
Compare
ee08ca0
to
b9df9b4
Compare
0f36489
to
1d19938
Compare
b9df9b4
to
4d3c8df
Compare
1d19938
to
01ed5ee
Compare
01ed5ee
to
56a726b
Compare
4d3c8df
to
07793e3
Compare
07793e3
to
d2158e0
Compare
(cherry picked from commit d655d63)
(cherry picked from commit d655d63)
PR Type
[x] Bugfix
What Is the Current Behavior?
"Add to Cart" buttons on retail sets are active when quantity is 0.
Steps to reproduce:
Expected: Add to cart should not be possible
Actual: Add to cart button is enabled, clicking it will lead to an endless loading animation
Expected: All add to cart buttons should be disabled
Actual: Add to cart button is enabled, clicking it will lead to an endless loading animation
What Is the New Behavior?
Does this PR Introduce a Breaking Change?
[ ] Yes
[x] No
Other Information
WAIT: Fix is based on #1063, please review and merge before this fix.
AB#76057