Duplicate Cart Item

0
I have added few items from cart with some quantity for suppose 3 and iin my cart list . If i want to add the same item with one more quantity my cart list should not create a duplicate item instead the quantity should get increased . Please guide me with the exact procedure 
asked
3 answers
1

Hi Sushanth,

While adding the product to the cart, Retrieve the list items (products) added to the cart, and then do a  find object from the List operation function to check if the item is already added or not. Use primary such as Item Id to check. If the find object Activity  return a value,  update the quantity in the cart. Keep an Exclusive split to determine whether to update or create a new object. 
If you can share a screenshot of the microflow, we could guide you more.
Hope this helps!! 

 

answered
0

Hi Sushanth,

You will need a Microflow on your "Add" Button.

In this Microflow literate over all Items in your Cart and check if the name of the current Item is in your Cart.

If so, retrieve the Item with the same name and change the quantity of this Item.

 

https://docs.mendix.com/refguide/loop/ - for loop

 

Hope this Helps,

answered
0

I have attached screenshot of the microflow

answered