How to calculate a total from the chosen products in the payment field?