Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Products in the `product-list` that have an `itemAttachment` duplicate when the quantity is increased
Products in the `product-list` that have an `itemAttachment` duplicate when the quantity is increased
ID:
Backlog
Published on 9/17/2021
Last update on 12/22/2022

Summary

If a store uses the product-list component of Store Framework, used in the minicart, cart items may be duplicated when increasing the quantity of an item that has an attachment (itemAttachment).

This is because the default noSplitItem behavior of the API request that updates cart items is false.

Simulation

  1. In your store, add to the cart an item that has an attachment option;
  2. Include an attachment to the item added to the cart;
  3. Increase the quantity of this item with the cart item update request by sending the following body:

    {
    "orderItems": [
    {
    "index": 0,
    "quantity": 2
    }
    ]
    }

  4. Notice that the API returns the list of items with the duplicate product, instead of increasing the quantity.

Workaround

Currently, there is no workaround.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback