The cart object has the following attributes:

cart.item_count

Returns the number of items inside the cart.


cart.line_items

Returns all of the line items in the cart.


cart.total_discount

Returns the total of all discounts (the amount saved) for the cart.


cart.total_price

Returns the total price of all of the items in the cart after discounts have been applied.


cart.total_weight

Returns the total weight of all of the items in the cart.