Shopify horizon varient problem

Topic summary

A user is experiencing an issue with Shopify’s Horizon theme when using metaobjects for product variant colors.

The Problem:

  • When selecting multiple color entries (list of entries) in the variant metaobject settings, the collection page filter returns no results/empty page
  • The filter works correctly when only one entry is selected
  • Screenshots show the metaobject configuration and the resulting empty filter display

Proposed Solutions:

  • One developer requested collaborator access to examine the backend code
  • Another developer suggested two approaches:
    1. Verify the Search & Discovery app configuration ensures the color metafield is set to “list of values” and properly added as a filter
    2. Implement custom filter logic in the collection template using conditional code (e.g., {% if product.metafields.custom.main_colors contains 'Red' %}) to handle list entries that native filtering may not support

Status: The issue remains unresolved, with the user considering sharing collaborator access for direct troubleshooting.

Summarized with AI on October 25. AI used: claude-sonnet-4-5-20250929.

In varient when i select / metaobject / color / and select list of entries

and here i select more then 1 variant color

then in collection page when i select filter products not showing empty page.

But if i make it to one entry and select 1 varient then every thing fine in my website now i will make list of entries so you can go to colelction page select filter you can see your self

password :rohbla

its showing like this when i select list of entries. if i select one entry then its fine

1 Like

Hello @learning141

For this, I will need to check the code in the backend, dear.

@devcoders for which file i can send you the code ?

1 Like

Kindly share the collaborator code with me, and I will check and update you accordingly.

Hey @learning141,
Thanks for bringing this Question to Shopify community where experienced developers are ready to help every new Merchants.
Regarding your concern about the Multiple color entries via Metaobjects to ensure it should work on the collection page filters.
But it’s working against your expectations because you need to follow the below suggestions to ensure that it should work properly.
(1) Check how filters are setup in Search & Discovery app:
-
Shopify Native Search & Discovery app allows you to create filters based on the product/variant Metafields.
- You need to make sure the metafield definition color is set to list of Values and added as a filters in the app.
(2) Custom Filter logic if native does’t work:

  • If Shopify’s default filtering can’t handle list of entries then you can solve it by custom code in your collection template.
    I show you example below.
{% if product.metafields.custom.main_colors contains 'Red' %}
   <!-- Show product when filter is Red -->
{% endif %}

This way, even the Metafield is Red, Blue the product will show when the customers will filter by red.
If you need more assistance to configure any of one workaround then you can share 4 digits collab code in the p/m.
Thanks