Price filter - how to filter from low to high?

Solved

Price filter - how to filter from low to high?

Meubilair
New Member
9 0 0

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

Accepted Solutions (2)
Litos
Globetrotter
688 169 150

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.

Screenshot.png

Hope it is clear to you.

Litos - Shopify Development Service Provider
Need to develop or customize your Shopify store, feel free to contact us here.

View solution in original post

Cedcommerce
Shopify Partner
718 77 116

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. 



Cedcommerce_0-1669900229892.png

 

image.png

 

Hope it helps. 

 

Regards, 

CedCommerce

CedCommerce || Shopify Expert
- Let us know if our reply is helpful for you. Like it.
- Was your question answered? Mark it as an accepted solution.
- For further discussion contact: Email ID- apps@cedcommerce.com
- Whatsapp:- Join Here

View solution in original post

Replies 6 (6)

Litos
Globetrotter
688 169 150

Hi @Meubilair,

Are you referring to sort by? Refer 

Screenshot_9.png

Litos - Shopify Development Service Provider
Need to develop or customize your Shopify store, feel free to contact us here.
Meubilair
New Member
9 0 0

Hi Litos,

 

Yeah that's what I meant, thank you.

Litos
Globetrotter
688 169 150

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.

Screenshot.png

Hope it is clear to you.

Litos - Shopify Development Service Provider
Need to develop or customize your Shopify store, feel free to contact us here.

Cedcommerce
Shopify Partner
718 77 116

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:

 

  1. manual
  2. best-selling
  3. title-ascending
  4. title-descending
  5. price-ascending
  6. price-descending
  7. created-ascending
  8. created-descending

Please feel free to connect with us if you have any queries. 

 

All the best, 

CedCommerce

CedCommerce || Shopify Expert
- Let us know if our reply is helpful for you. Like it.
- Was your question answered? Mark it as an accepted solution.
- For further discussion contact: Email ID- apps@cedcommerce.com
- Whatsapp:- Join Here
Meubilair
New Member
9 0 0

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!

Cedcommerce
Shopify Partner
718 77 116

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. 



Cedcommerce_0-1669900229892.png

 

image.png

 

Hope it helps. 

 

Regards, 

CedCommerce

CedCommerce || Shopify Expert
- Let us know if our reply is helpful for you. Like it.
- Was your question answered? Mark it as an accepted solution.
- For further discussion contact: Email ID- apps@cedcommerce.com
- Whatsapp:- Join Here