Skip to product information
1 of 1
Published:2023.12.07

Example of setting up Shopify to use metafields to hide filters for each collection

Example of setting up Shopify to use metafields to hide filters for each collection

Applications

  • Collection information management and editing

How to implement

  • LIQUID
View full details

Shopify's collection filter is common to all pages. It is convenient because it automatically hides items that do not correspond to the products listed, but there are still cases when you want to hide specific filters for each collection. Here is an example of how to implement it using meta fields.


Example of setting to allow filter hiding for each collection using metafields


[Settings Step 1] Add a single-line text (list) item to enter the name of the filter to be hidden in the collection meta field


[Settings Step 2] Edit two parts of the code in the collection filter section "facets.liquid"


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Edit two parts of the code in the collection filter section "facets.liquid"

Related Post