Cascading filter system

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

  1. 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.

  1. 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.

  1. 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:

{% for product in collection.products %}
  

{{ product.title }} - Brand: {{ product.metafields.custom.brand }} - Year: {{ product.metafields.custom.year }}

{% endfor %}

If this shows blank for brand or year, then the metafields are either:

. Not assigned to those products

. Not correctly referenced in Liquid

try this if you need any plz let me know

thank you :blush: