How can I delete price sorting options from my ecommerce store?

How do I remove “Price, low to high” and “Price, high to low” from the sorting options?

https://alpinemillwork.myshopify.com/collections/moulding

Hi @sarahweb96

Thank you for reaching out to the Shopify Community.

In order to remove the “Price, low to high” and “Price, high to low” from the sorting options, you have to edit your theme code file.

  • Go to Admin panel->Online Store → Themes → Edit Code.

  • Now in code editor search for file main-collection-product-grid.liquid in Sections folder and facets.liquid in Snippets folder.

  • Now in both the files search for facet-filters (ctrl+f facet-filters) and you will be able to locate the code where you have to make changes. Attached a ss for reference

  • Replace the above code between the for loop with code provided below in both files

{% unless option.value contains 'price-ascending' or option.value contains 'price-descending' %}
  
{% endunless %}​

  • If you preview your store now, the options should not be there.

If the options are still showing, please provide your store password so that I could provide you with detailed solution.

Do give it a try and let me know if this was helpful.

Thanks.