This is a short post about how to get useful information from your site's Commerce setup.
Very often, we want to use certain data about the user cart / order status. It can be either for specific order processing for the user, based on role, permissions, discounts or whatever, or for simple information blocks, like in most cases.
For this, you may need to know the total amount for the current cart order, and / or the quantity of items there are in cart. How do you find that out?