I’d like to report a possible bug related to the Liquid metafield_text filter and the legacy integer metafield type.
The following Liquid recently stopped working and now only returns an empty string:
{{ product.metafields.bsi[“sales-rank”] | metafield_text }}
Could someone from Shopify look into this issue? I am happy to provide a link to a product in my dev store if you’d like to investigate using my existing metafields.
Thanks!
Tom
Hi Tom,
I can take a look at this - a link to your dev store would be super helpful.
Thanks,
Katherine
Excellent. Thanks Katherine. I appreciate you looking into this.
Here is a link to my dev store:
And this product handle has the metafield set: ghostbusters-playstation-4
I’m guessing you don’t need the store password but if you do please let me know.
Thanks Tom! We’ve identified the problem - it was due to a bug fix we shipped recently that then exposed a problem with the metafield_text filter’s handling of integers. We have a fix in progress and I’ll update here again once it’s shipped.
1 Like
That’s excellent news. Thanks Katherine!
Hi Tom, this fix has shipped - can you confirm it’s now working as expected on your store?
1 Like
Hi Katherine, that’s amazing. I verified the fix is working on both my development store and also one of my customer’s stores. Thanks for putting this fix together so quickly 
That’s great to hear - and thank you for bringing this to our attention! Have a great weekend