Sort products by Metafield

✨Want to let customers sort your products by values like “Release Date”, “Popularity”, or any other custom field? You can do this using Shopify Metafields and the Smart Product Filter & Search app.

Here’s how to enable sorting based on a metafield — and how to remove it from the sorting dropdown later if needed.


🔹Enable Metafield in the App Settings

  1. Open the Smart Product Filter & Search app in your Shopify Admin.

  2. From the left menu, click Settings → go to the Metafields tab.

  3. Click Add Field → Choose Metafield.

  4. Enter your metafield namespace and key (e.g., custom.material).

  5. Under Applies to:

    • Ensure to enable the Sort option so that customers can sort product data by this metafield.

  6. Click Add, then Save your changes.


🔹Remove the Metafield from the Sorting Dropdown

If you no longer want customers to sort products using that metafield:

  1. Go back to the metafield settings in Smart Product Filter & Search app.

  2. Uncheck the “Sort” option.

  3. Save the changes.

By doing that, the sort option will automatically be removed from the app’s sorting dropdown.


💡 Example

Let’s say you have a metafield called custom.release_date. If the Sort option is enabled, customers can choose “Sort by Release Date” on the storefront. Disabling that option will hide it from the dropdown.


💬 Need Help?

Not sure how to define your metafields or can’t find the right setting? Reach out to us at [email protected] — we’re here to assist you.

Last updated

Was this helpful?