Conditional Product Info in Product Grid (Dawn Theme)

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 metafield code here
{% endif %}

In this way it displays content for specific collections.

Regards
Guleria