Collection with custom condition (metafield)

Hi! I’ve created this custom metafield for my product:

Anno: {{ product.metafields.my_fields.anno }}
Kilometri: {{ product.metafields.my_fields.kilometraggio }}
Cilindrata: {{ product.metafields.my_fields.cilindrata }}
Proprietari: {{ product.metafields.my_fields.precedenti_proprietari }}

So: the custom metafield are show correctly and they look like great in product information. but…

I would like to create a custom collection condition with this custom metafield and able to filter the product with this additional field.

For example:
By default you are able to filter collection by creating an automated condition in a new collection. (es. insert a product in BMW collection if: tag, title, weight etc.)

How could I use (es. product.metafields.my_fields.cilindrata or .anno) to insert a product automatically in a collection?

@dieciadv – unfortunately (as far as I know) it’s not possible to use metafields as a condition for automated collections. You’d probably have to duplicate the information as tags, if you wanted to achieve what you’re trying to do; which is – of course – a pain to manage long term and prone to errors.

What you can do though is use faceted search apps, that allow you to filter the current collection by metafield values. Not the same, but maybe something that you can work with.

Mario