Hi,
I want to customize the search result in product->article->page order.
How can I do that? I have tried some ways but it always showed page first.
I am using Debut theme.
Here is my current code in search.liquid
{% for item in search.results %}
{% if item.object_type == ‘product’%}
{{ item.title }}
{% endif %}
{% unless item.image == null %}
{% endunless %}
{{ item.title }}
{% if item.published_at %}{{ item.published_at | date: format: "date" }} — {% endif %}
{{ item.content | strip_html | truncate: 200 }}
If anyone can help would be great, thanks in advance.