• Home
  • Solutions

Cart Template

/templates/cart.liquid

This template is used to display the products in the cart.

This resource is optional

{% for item in cart.items %}
    <h2><a href="{{ item | product_url }}">{{ item.name }}</a></h2>

    <div class="desc">
        {{ item.body-html | trim_words: 60 }}
    </div>
{% endfor %}

From /templates/cart.liquid you have access to the following variables:

Variable Type Description
cart.count Int The number of products in the cart
cart.items Object The list of products in the cart
cart.count Float The value of the products in the cart
  • Using Ticket Rewards

    • Getting started
    • Blog
  • I'm a designer

    • Getting started
    • Templates
    • Variables
    • Filters
  • I'm a developer

    • Javascript API

Documentation search

Blog • Privacy Policy • Terms & Conditions • Copyright 2024 Ticket Rewards