New Shopify Certification now available: Liquid Storefronts for Theme Developers

Custom Sort By (Date and time) Metafield

1 0 0

We have created a custom Metafield as a "Date and time" to be used on our products. I want to Sort By (Oder By) this custom metafield on one of my collections. Are there any code changes or apps that will allow us to achieve the results we are looking for? If we can't add the custom field to the sort by dropdown then just backend code to make the correct sorting would be fine. Thanks in advance!

Reply 1 (1)
Shopify Partner
61 0 2

Unfortunately, Shopify does not support sort for Metafields.

If you are open to 3rd party apps, you can try this app. So basically you will need to import metafield to the app, and then the app will allow you to sort products based on it (ascending or descending).


Don't stop grinding