{% extends "oscar/search/results.html" %} {% load currency_filters %} {% load thumbnail %} {% load product_tags %} {% load wagtailcore_tags wagtailsearchpromotions_tags %} {% load i18n %} {% load static %} {% block column_left %}
{% trans "Filters" %}
{% if has_facets %}
{% for field, data in facet_data.items %} {% if data.results %} {% include 'oscar/search/partials/facet.html' with name=data.name items=data.results %} {% endif %} {% endfor %}
{% endif %}
{% endblock %} {% block column_left_class %} {% if not has_facets %} d-none {% else %} {{ block.super }} {% endif %} {% endblock %} {% block column_right_class %} {% if not has_facets %} col-12 {% else %} {{ block.super }} {% endif %} {% endblock %} {% block headertext %} "{{ query }}" {% trans "Filter" %} {% blocktrans count num_results=paginator.count %}{{ num_results }} result.{% plural %}{{ num_results }} results.{% endblocktrans %} {% endblock %} {% block content %}
{# Render other search params as hidden inputs #} {% for value in search_form.selected_facets %} {% endfor %} {% get_search_promotions search_form.q.value as search_promotions %} {% if search_promotions %} {% endif %} {% if paginator.count %}
{% if paginator.num_pages > 1 %} {% blocktrans with start=page.start_index end=page.end_index num_results=paginator.count %}Found {{ num_results }} results, showing {{ start }} to {{ end }}.{% endblocktrans %} {% else %} {% blocktrans count num_results=paginator.count %}Found {{ num_results }} result.{% plural %}Found {{ num_results }} results.{% endblocktrans %} {% endif %}
{% include "oscar/partials/form_field.html" with field=search_form.sort_by style='horizontal' %}
{% else %}

{% trans "Found 0 results." %} {% if suggestion %} {% url 'search:search' as search_url %} {% blocktrans %}Did you mean "{{ suggestion }}"?{% endblocktrans %} {% endif %}

{% endif %}
{% if page.object_list %}
{% for result in page.object_list %}
{% render_product result.object %}
{% endfor %}
{% include "oscar/partials/pagination.html" with page_obj=page %}
{% endif %} {% endblock %} {% block onbodyload %} {{ block.super }} oscar.search.init(); {% endblock %}