• Home
  • Solutions

Search Template

/templates/search.liquid

This template is used to display the products found after a search.

This resource is optional

<h1>Your search: {{ query }}</h1>
Number of items found: {{ product.count }}
<ul>
    {% for item in product.list %}
        <li>
            {{ item.name }}
        </li>
    {% endfor %}
</ul>

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

Variable Type Description
query String The searched string
product.list <Product> list The list of all products having the selected tag
product.count Int The total number of products having the selected tag
  • 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