How to Create a Custom Filter in Shopify (Minus the Coding!)
Updated July 3, 2024.
Custom filters allow customers to sift through your store and find the products they're interested in.
Adding a custom filter to your store can be done by code or by using product variants and metafields. Unless you're well-versed in HTTP, CSS, JavaScript, and Liquid, using code will be time-consuming and could negatively impact your website.
This article will provide alternative methods to coding to help you easily implement custom filters in your Shopify store.
Method 1: Leveraging Product Variants
Create custom filters by leveraging product variants:
- From your Shopify Admin page, navigate to Online Store > Navigation.
- Select Add filters.
- Under Product options, select the variants that you wish to use.
- Click Done.
If you don't yet have any variants on your products, you can create some with the following steps:
- From your Shopify Admin page, navigate to Products > All Products.
- Select Edit product or Add product.
- Under Options, select the This product has options, like size or color box.
- Fill in the variant's name and values.
- Click Done.
Method 2: Leveraging Shopify Metafields
Create custom filters by leveraging Shopify metafields:
- From your Shopify Admin page, navigate to Online Store > Navigation.
- Select Add filters.
- Under Metafields options, select the metafield that you wish to use.
- Click Done.
If you need to create metafields, the following steps can be followed:
- From your Shopify Admin page, navigate to Settings > Metafields.
- Select the type of metafield you wish to create and click Add definition.
- Enter a name and description, and select a content type.
- Save your changes.
To add values to the metafield:
- Go to Products > All Products.
- Select a product.
- Enter values in the metafields section.
- Save your changes.
Final Verdict
Having custom filters in your Shopify store is a great way to improve customer experience and boost sales. By following the product variants and metafields methods described in this article, adding custom filters becomes a breeze, and coding no longer has to be a deciding factor.