Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi all,
Does anyone know how to get a price filter to go from low to high and vice versa?
I can currently only filter like this: From: (fill in value) to: (fill in value).
Thanks,
Thijs
Solved! Go to the solution
This is an accepted solution.
Hi @Meubilair,
It is supported in all current themes, for craft theme you can Enable it here:
Go to Customize > Collections > Default collection > Product grid > Enable sorting.
Hope it is clear to you.
This is an accepted solution.
Hello @Meubilair,
Thank you for reaching out to us. We would like to inform you that, there are already options for sorting in the “Craft” theme. Check your theme setting once for the same.
Below, we have attached an image for your reference.
Hope it helps.
Regards,
CedCommerce
Hi @Meubilair,
Are you referring to sort by? Refer
Hi Litos,
Yeah that's what I meant, thank you.
This is an accepted solution.
Hi @Meubilair,
It is supported in all current themes, for craft theme you can Enable it here:
Go to Customize > Collections > Default collection > Product grid > Enable sorting.
Hope it is clear to you.
Hello @Meubilair,
To fix this issue you can take reference from the below-provided solution and similarly follow the below-provided steps, to fix your issue.
Note- In case you are not compatible with liquid.code or does not have much knowledge about the Shopify theme, please consider hiring a Shopify expert or let us know if we can help you with the same.
Open Section>Collection-template.liquid and then find 'collection.sort_options'
Now add unless condition as shown below, this will remove the added option from the box.
Find the code below:
{% for option in collection.sort_options %}
{% unless option.value contains 'title-ascending' or option.value contains 'title-descending' %}
<option value="{{ option.value }}"{% if sort_by == option.value %} selected="selected"{% endif %}>{{ option.name }}</option>
{% endunless %}
{% endfor %}
With this, you can remove the 'Alphabetically, A-Z' and Alphabetically, Z-A' options.
Moreover, You need to add the below-provided condition in the next line to hide the option
{% unless option.value contains 'title-ascending' or option.value contains 'title-descending' %}
Here are a few suggestions for the options that you can add:
Please feel free to connect with us if you have any queries.
All the best,
CedCommerce
Hi Ced,
I'm on the craft theme, the code seems to be different from what you described. Any ideas for the craft theme?
Thanks!
This is an accepted solution.
Hello @Meubilair,
Thank you for reaching out to us. We would like to inform you that, there are already options for sorting in the “Craft” theme. Check your theme setting once for the same.
Below, we have attached an image for your reference.
Hope it helps.
Regards,
CedCommerce
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025