Workflow add product to cart

I need help, please. I would like to add items that have IDs (barcodes for example) to a cart. The idea I have is to search for the product using its barcode (do a search → products → product barcode = input barre_code.value), add it to the cart but not overwrite the one already added, but it didn’t work as I wanted, I’ll send you the screenshots.
thank you very much





It seems you are always creating a new CartItem when clicking that button.

You could Do a search for…CartItem and If the product is not yet in the cart, create a new one.
If it is already in the cart, simply Make changes CartItem by adjusting its quantity :slight_smile: