Hi,
I am having an issue where even though the value of some variant metafield is not set or is empty in admin, it’s displaying some random number in the front end. It looks like this in console:
I have exported the data, the cells are empty, the data should have been null, but I have no idea where these numbers are coming from. If I put in some value, that value is displayed but I have some fields that has to be empty and should not be displayed on the front end.
How do I solve this? Thank you
Hi, did you ever find a solution to this as I have the same issue?
Same problem here. Did you ever find a fix?
No help through the chat.
After experimenting with a new field that worked perfectly I concluded it was bug in that particular metafield.
No problems since deleting it and using the new one.
Was the metafield named “size”? I think I got into the same situation and mine was named “size” - I think that caused an issue as that is also a liquid property.
https://shopify.github.io/liquid/filters/size/
Hi,
It wasn’t but sorted it by deleting the bugged field and creating another identical one.
Gotcha, I tried that but it didn’t go away, but I fixed it by adding “.value” to the end, like {{ product.metafields.custom.size**.value }}**