Cart output variables are available on all pages. All cart output tags start with cart_.
Output Tag | Description |
{cart_num_items} | Returns a number of item in the cart |
{cart_total} | Returns the total cost in the cart |
<p>{cart_num_items} {% if cart_num_items == 1 %} item {% else %} items {% endif %} in cart: {cart_total}</p> <!-- output --> <p>3 items in cart: $27.49</p>