{{> components/products/filter sort=pagination.product_results.sort}}

<form action="/compare" method='POST' data-product-compare>
    {{#compare theme_settings.product_list_display_mode 'grid'}}
        {{> components/products/grid products=product_results.products show_compare=product_results.show_compare theme_settings=theme_settings}}
    {{else}}
        {{> components/products/list products=product_results.products show_compare=product_results.show_compare theme_settings=theme_settings}}
    {{/compare}}

    <input type="submit" value="{{lang 'compare.button'}}" class="button button--primary">
</form>

{{> components/common/paginator pagination.product_results}}

{{> components/products/filter sort=pagination.product_results.sort}}

<form action="/compare" method='POST' data-product-compare>
    {{#compare theme_settings.product_list_display_mode 'grid'}}
        {{> components/products/grid products=product_results.products show_compare=product_results.show_compare theme_settings=theme_settings}}
    {{else}}
        {{> components/products/list products=product_results.products show_compare=product_results.show_compare theme_settings=theme_settings}}
    {{/compare}}

    {{#if product_results.show_compare}}
        <input type="submit" value="{{lang 'compare.button'}}" class="button button--primary">
    {{/if}}
</form>

{{> components/common/paginator pagination.product_results}}

Hide compare search when setting is disabled
Hide compare search when setting is disabled
