How to prevent the same product from being added to the shopping cart multiple times?

0
Hello fellow Mendix developers, I'm working on a project where users can add products to their shopping cart by clicking on an "Add to Cart" button. Currently, I'm encountering the issue that if a user adds the same product multiple times, the product is added as a separate item to the cart each time, instead of increasing the quantity of the existing item. I'm using an exclusive split activity in my microflow to check if the product already exists in the shopping cart, but I'm unsure how to build the logic to update the quantity of the existing item rather than adding a new item. Has anyone experienced this issue before, and how did you solve it? Any suggestions and advice would be greatly appreciated! Thank you!
asked
1 answers
0

Hi Muhammad Furqan,

you can find answer for your question below:

https://community.mendix.com/link/space/app-development/questions/125609

 

Best regards,

Adam

answered