I know this cant be done using liquid because I have already tried. They want new items to appear first which contain a certain product tag and the on sale items to appear last in every custom collection on the site.
I started creating a standalone app and plan to query the active products in the collection, reorder them, and then organize them using collectionReorderProducts in the GraphQL Admin API. The only thing I am worried about is there are up to 3k products in each collection and dont want to hit the rate limit.
Other than that it seems to be possible but they said they reached out to multiple agencies that said it couldnt be done. Am I wrong or can this be done?
No liquid/JS wont work. Just because it was created/published at a certain date in my case doesn’t mean that its new… JS is too slow and the pagination makes it impossible for either of those options. The only solution I think its to create a server to schedule sorts at night with the API.
You’re right on this one. Definitely stay away from javascript based sorting methods. When stores want to use dynamic sorting, it’s time to do it through an app.