How to calculate total price based on different product selection?