Hi all,
I’m relatively new to using liquid and have hit a weird problem I can’t wrap my head around.
I’m currently editing the collections page to show custom metafield information next to the product, and it only seems to be working for specific data types.
I don’t have any issues with metafields that are just integers, such as {{product.metafields.my_fields.release_year}}, however if I try anything that’s a string, such as {{product.metafields.my_fields.player_count}} (which should return a string like “2-6 players”) or {{product.metafields.my_fields.playing_time}} (30-60 mins), they don’t return anything.
I’ve tried playing_time.value and it still returns nothing. The built in fields like vendor and product name also work fine.
I’ve also tried the code on the product pages themselves and it works fine, it’s only on the collections page that I get this issue.
Any help would be much appreciated!
liquid code:
