Added 'total' functionality to cart