Hello @AdditivPlus To create a cascading filter system with dynamic metafield values and a search button on the Shop page in the Dawn theme, you’ll need to:
You’ll need custom JavaScript to make the dropdowns update based on each other. Use Shopify Liquid to pull the metafield values, then trigger changes on each dropdown to update the next one. A search button can reload the page with filters in the URL.
Hi, thanks for your help !
The block with the three dropdown menus is displaying correctly so that part is working.
However, the menus don’t seem to be pulling data from the metafields, so no values are showing up at the moment and nothing can be selected.
Thanks in advance for your help !
hey @AdditivPlus Thanks for the update! If the dropdowns are visible but not populating with values, that usually means one of the following is happening:
Let’s Troubleshoot Step-by-Step
Are the metafields available in Liquid?
Ensure you’re exposing them correctly inside your Shopify Liquid file. Here’s a safe debug version of the window.productData script:
Check the browser console (right-click → Inspect → Console tab) and confirm if:
. The array appears with objects.
. brand and year fields are not null, undefined, or empty.
Confirm Metafield Namespace and Keys
Double-check:
. Product metafields are under namespace: custom
. Keys are:
. brand
. year
. Products in the current collection have non-empty values for both
Go to Shopify Admin > Settings > Custom data > Products to confirm.
Are you on a collection page with products?
If you’re testing this on a page that’s not a collection, then collection.products will be empty.
You can fix this by loading all products via the Storefront API, but for now, verify you’re testing this on a real collection page.
Optional Debug Tip
To make sure you’re pulling values, insert this line temporarily in your Liquid: