cart now updates total_price and total_amount