In the image below, I show you the “sort by” options that is basic on my shopify theme (DAWN THEME) but I would like to know how to customize it to keep only:
This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Snippets->/facets.liquid-> Replace your code by below code:
Show More
{%- if filter_type == 'vertical' or filter_type == 'horizontal' -%} {% comment %} Sorting for vertical filter are grouped with filter when no JS{% endcomment %} {%- if enable_sorting and filter_type == 'vertical' -%} {%- endif -%} {%- endif -%} {% comment %} Drawer and mobile filter {% endcomment %}
{%- for filter in results.filters -%} {%- for value in filter.active_values -%} {%- endfor -%} {%- if filter.type == 'price_range' -%} {%- if filter.min_value.value != null or filter.max_value.value != null -%} {%- endif -%} {%- endif -%} {%- endfor -%}
{% comment %} Sort, product count and filter pills at the end when filter is type of Drawer for the correct tabbing order {% endcomment %} {%- if enable_sorting and filter_type == 'drawer' -%} {%- endif -%}## {%- if results.results_count -%} {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }} {%- elsif results.products_count == results.all_products_count -%} {{ 'products.facets.product_count_simple' | t: count: results.products_count }} {%- else -%} {{ 'products.facets.product_count' | t: product_count: results.products_count, count: results.all_products_count }} {%- endif -%}
{%- if filter_type == 'drawer' -%} {%- endif -%}