Shopify themes, liquid, logos, and UX
I've been successful adding custom product metafields to my product grid for the products on my store, but I just realized that these metafields will appear for ALL products and I only need them to apply to my House Plans. I also have a collection called "Detached Garage Plans" and the info about Beds/Baths/Heated Sq Ft isn't applicable to those items.
Any idea how I can have different metafields appear in the product grid based on the collection? I'm
Hello @deannedawe ,
If you are using metafields with dynamic source then it's not possible.
But if you are using the metafields direct in code part then you can make it conditional like this:
{% if collection.handle == 'house-plans' %}
<!-- Your logic here for House Plans collection -->
Your metafield code here
{% endif %}
In this way it displays content for specific collections.
Regards
Guleria
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025