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