You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When user adds product on Quick order page he enters product SKU to find product. In suggestion dropdown he selects desired product and this product will be added to the table with minimal quantity. He can use item-counter to increase or decrease this product quantity value.
If he adds same product using search (product that is already been added to the table) - quantity field will be increased by 1. And now, if he will be using item counter to change value - value in storage will not be affected (visually on frontend value will be changed) and when user will press Add to Cart button last value (updated by adding same product using search) will be added to the cart.
Tell us the version of Spartacus
Library version: 6.8.0
To Reproduce
Steps to reproduce the behavior:
Go to Quick Order page
Add any product using search (quantity of this product will be 1)
Increase this quantity to 3 using item-counter (quantity of product is 3)
Add same product using search (by entering same SKU) (quantity of product will be 4)
Increase quantity to 6 using item-counter (visually in table quantity will be 6)
Press Add to Cart button and validate quantity added to cart (quantity added to cart will be 4)
You can also notice that item-counter is not changing quantity stored in storage by adding same product for the 3rd time instead of pressing Add to Cart button on last step. When quantity is 6 (see reproduction steps upper) - add same product using SKU for 3rd time. When you will do that - you will notice that quantity became 5 instead of expected 7.
Expected behavior
After user adds product that already been added to quick order table using search for 2nd, 3rd, 4th and so on time, quantity of this product must be increased. Item-counter associated with current product line item should work properly after this (if user later will be changing quantity using item-counter - this changes must be passed to storage and later to the cart).
Screenshots
Desktop (please complete the following information):
OS: Window 10
Browser Chrome
Version 121.0.6167.140
The text was updated successfully, but these errors were encountered:
Describe the bug
When user adds product on Quick order page he enters product SKU to find product. In suggestion dropdown he selects desired product and this product will be added to the table with minimal quantity. He can use item-counter to increase or decrease this product quantity value.
If he adds same product using search (product that is already been added to the table) - quantity field will be increased by 1. And now, if he will be using item counter to change value - value in storage will not be affected (visually on frontend value will be changed) and when user will press Add to Cart button last value (updated by adding same product using search) will be added to the cart.
Tell us the version of Spartacus
To Reproduce
Steps to reproduce the behavior:
You can also notice that item-counter is not changing quantity stored in storage by adding same product for the 3rd time instead of pressing Add to Cart button on last step. When quantity is 6 (see reproduction steps upper) - add same product using SKU for 3rd time. When you will do that - you will notice that quantity became 5 instead of expected 7.
Expected behavior
After user adds product that already been added to quick order table using search for 2nd, 3rd, 4th and so on time, quantity of this product must be increased. Item-counter associated with current product line item should work properly after this (if user later will be changing quantity using item-counter - this changes must be passed to storage and later to the cart).
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: