How to populate Shopify product metafields with product's tag?

How to populate Shopify product metafields with product's tag?

UmairA
Shopify Partner
1106 101 226

What I want to do is to get rid of a collection filter app that uses the product metafields to add two custom filters on the collection page. But our store has thousands of proudcts. I want to learn a way so I can automatically populate each product metafields with it's tags value.

E.g

Here is the screenshot of Metfield box

and

Here is the screenshot of Tags box

As you can see above I've two metafields "Product" and "Collection" and two tags "Product_Test Proudct" and "Collection_Test Collection". So all I want to do is to populate each product metafield with its respective tag's value. How do I go about it?

Replies 0 (0)