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
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
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.name }}{% 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 Litos,
Yeah thatâs what I meant, thank you.
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!
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 ,
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