Error handling and cart totals