Overview

Represents the current user's cart. It is globally accessible as cart in the CMS.

Properties

cart.id

Returns the unique ID of the cart.

cart.promocode_code

Returns the text code of the promocode that's associated to the cart, if any.

cart_remove_promocode

liquid form is now available

cart.total

Returns the cart's total (orderlines total + tax + shipping - discounts).

Use the currency filter to format the output.

cart.orderlines_total

Returns the orderlines total.

Use the currency filter to format the output.

cart.orderlines_discount

Returns the amount that was discounted from the orderlines.

Use the currency filter to format the output.

cart.shipping_discount

Returns the amount that was discounted from shipping.