Hello,
I’m using the debut theme and want to remove ‘Featured, Best Selling, Date old to new, Date new to old’ options. Please can someone help?
Thanks
Hello,
I’m using the debut theme and want to remove ‘Featured, Best Selling, Date old to new, Date new to old’ options. Please can someone help?
Thanks
{% unless option.value == 'manual' or option.value == 'title-ascending' or option.value == 'title-descending' or option.value=='created-ascending' or option.value == 'created-descending' %}
{%- for option in collection.sort_options -%}{% unless option.value == 'manual' or option.value == 'title-ascending' or option.value == 'title-descending' or option.value=='created-ascending' or option.value == 'created-descending' %}
<option value="{{ option.value }}" {% if option.value == sort_by %}selected="selected"{% endif %}>{{ option.name }}</option>
{% endunless %}
{%- endfor -%}
Let me know how this goes and if there is anything else I can assist you with, I’m happy to help!
All the Best,
I ended up just copying your final code near line 108 which kind of worked, but I am missing the Alphabet A - Z and Z - A option, and it is still showing ‘Best selling’ which I want removed
thanks
Below was the original line 108 to 115.
{%- for option in collection.sort_options -%}
{{ option.name }} {%- endfor -%} {% include 'icon-chevron-down' %} {% endif %}Below is the new 108 to 115 as per your code.
{%- for option in collection.sort_options -%}{% unless option.value == ‘manual’ or option.value == ‘title-ascending’ or option.value == ‘title-descending’ or option.value==‘created-ascending’ or option.value == ‘created-descending’ %}
{{ option.name }} {% endunless %} {%- endfor -%} {% include 'icon-chevron-down' %}Thanks for code . please share your shop URL!
Add following code
{%- for option in collection.sort_options -%}
{% unless option.value == 'manual' or option.value == 'best-selling' or option.value == 'created-ascending' or option.value=='created-descending' %}
{% endunless %}
{%- endfor -%}
It worked! thank you so much!
thank you for this. its worked
Do I delete any code before adding this code?