Hello admin,
I hope you’re doing well. I’d like to report a behavior I’ve encountered in the shopping cart that I believe could be improved.
Steps to reproduce:
Go to any product page and select a quantity (e.g., 6 pieces).
Click “Add to Cart.” The cart correctly shows “6 × [Product Name]”.
Return to the same product page and click “Add to Cart” again (without changing the quantity selector, which remains at 1 by default).
Current behavior:
Instead of updating the existing cart line to “7 × [Product Name],” a new line appears for “[Product Name]” with quantity 1.
The cart displays two separate entries: one for 6 units and one for 1 unit of the same product.
Expected behavior:
When adding a product that already exists in the cart, the system should detect the existing entry and increment its quantity accordingly, rather than creating a new line item.
Why this matters:
Consolidating identical products into a single line with an updated quantity improves clarity for customers.
It reduces confusion at checkout and ensures accurate stock management.
Would it be possible to adjust the cart logic so that adding an existing product increases its quantity in the same line item?
Please let me know if you need any further information or logs.
Thank you for your help!



