Shopping Cart

Hey geniuses! My problem this time is how to use a shopping cart so that it is able to compute for me the totals of my items selected and be able to reduce the totals in case i decide to remove an item from the list....implementing that microflow has really given me some hard time.....any suggestions i will be glad..thanks
2 answers

I assume you can retrieve the item list in the shopping cart. Then use the aggregate list function to calculate the values. Look at the documentation here: Otherwise specify some more what your problem is exactly.




You could for example use a before commit event for this on your shopping cart entity. In the before commit you have to retrieve all associated shopping cart lines and do a sum of all the prices. Set the result in an attribute in your shopping cart object.