Shopping Cart

1
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
asked
2 answers
2

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: https://world.mendix.com/display/refguide5/Aggregate+List Otherwise specify some more what your problem is exactly.

Regards,

Ronald

answered
-1

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.

answered