Can I use metafields to track batch dates and quantities?

I am thinking about using metafields to track my batch dates and quantities, along with an expiry date. Does anyone know if this is even possible? To be able to include in the metafield: Date, expirey date and starting quantity.

Hi @ZFF-RolfS ,

You can totally use Metafields. I will show you how to add it with ‘expirey date’, you can do the same with other fields. Please follow the steps below:

  • Step 1: You need to create Metafield for expirey date.

  • Step 2: You go to each product and add ‘expirey date’.

  • Step 3: You go to product page display file, you try to search file ‘product-template.liquid’ or ‘main-product.liquid’ and add the code, it will display fine.

Code: {{ product.metafields.my_fields.expirey_date }}

Hope it helps!