I have a Provider with the following data:
DP.addItem({Vare:"Casual Item", Size, Type:"", Color:TColor, Amount:AmountT, Price:AmountT*79});
I have made a shopping cart (School project) and after I buy a few items, the data above gets put in a datagrid, but the problem here is that I want to list the total price of all the products in the dataprovider above.
So let's say someone buys 10 T-shirts and 10 Phones, 1 phone = $10, 1 T-shirt = $1
In total of $110, but I want something like
trace(price)
And it should be able to list all the numbers collected in the price column of the dataprovider.
If I am unclear, tell me, I will edit this post (if possible).