search
The search
object has the following attributes:
search.results
Returns an array of matching search result items. The items in the array can be a(n):
You can access the attributes of individual search results by looping through search.results
.
{% for block in search.results.products %}
{% include 'product', product: block, quickbuy_on: settings.quickbuy_on %}
{% endfor %}
search.terms
Returns the string that was entered in the search input box.
Updated about 3 years ago