Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I'm looking to modify the sort by functionality on collection pages on Dawn v 10.0.0
the app used is the Shopify built Search and Discovery app
Our store's sort by price is not working correctly, as it seems to be taking the least expensive variant to sort by.
I've modified the price.liquid snippet to display the highest variant price on collection pages, and need this to be used to sort by.
In main-collection-product-grid.liquid there is a reference made to facets - {%render 'facets' %}, but I can't find where the actual logic is for the sorting and have looked in facets.liquid and facets.js files.
If anyone can point out where the code sits to modify the sort function, I really would appreciate any help.
Unfortunately not.
I'm holding out for an update on the Search and Discovery before attempting anything like that again.
Last time I checked, the app also does not fully accommodate product metafields. Currently you can sort but not search based on metafield.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify 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, 2025