YMM Search is a filter that can help customers filter out the product they are looking for more easily. Now, we will conduct you step-by-step on how to use this feature to insert it into your online store's Filter.
First, tick the " Enable" and "Enable generate JSON" to turn on this filter.
Note: Before employing to set up the filter, remember to convert file XLSX( Microsoft Excel Open XML Spreadsheet) into JSON. Below we will show you how to transform it into a JSON file.
When you tick on "Enable generate JSON tool" your screen appears with a pop-up. Choose an XLSX file from your device, then drag and drop it into the pop-up.
E.g. Scroll down this page to download the XLSX demo attached.
The XLSX automatical convert into a JSON file. Afterward, download the JSON file.
Log in to your Shopify admin > go to Settings placed at the bottom left corner of the screen. At the sidebar, please scroll down to see the FILES sector and click on it. Then upload your JSON file then copy the link.
Paste the link on the check-box " JSON data" and click save.
Creating Custom Filter via Shopify Metafields
Creating a metafields definition means preparing a placeholder for your custom data. Let’s see the process of defining product metafields.
Step 1: Log in to your Shopify admin
Step 2: Go to Setting Metafields
Step 3: Select Products in the metafields type
Step 4: Click on the Add definition button.
Step 5: Give a name to your metafields definition. You will get suggestions of Standard metafields definitions. You can select one or create a custom metafields definition.
Step 6: Keep the Namespace and key as it is. The system will use it to identify the metafields definition.
Step 7: Click Select content type, and then select the content type (Text or Number).
Step 8: Hit the Save button.
E.g. Name: Year
Namespace and key: my_fields.year
Select content the style: Single-line text
Adding Values to Shopify Product Metafields
Once you’ve successfully created the metafields definitions and pinned them, you may notice the metafields have been added to the parts of your store (Shopify admin) where it belongs.
To add value to the metafields in the Shopify store, you need to enter the value according to the content type on the metafields show.
Step 1: Click on the empty space beside the metafields name.
Step 2: Based on the type or format of the value, it will provide you the option to feed the value such as text box, image browse button, color picker, date & time selector, etc. Add the value there.
Step 3: Click on the Save button.
In the same way, you can add values to the other metafields, also in other products.
Display Product Metafields in Shopify
Step 1: Select the name into the "Select placeholder" and follow the order of the JSON file
Step 2: Type the accurate name at Product metafields definition into the box at your theme customize which follows the format below
Type the text at the Namespace and key: my_fields.year into Metafield namespace: my_fields and Metafield key: year (the values are respectively each other)
Result: Showing the Custom Filter on the Storefront
Was this article helpful?
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
We appreciate your effort and will try to fix the article