So I have a definition of a metafield on a product. It is a single line text field. No restrictions.
When I use the REST API to populate these fields with a simple table html code, the field has the code stored in it but it won’t show on the front page using product.metafields.custom.myfield.value. It just shows blank even though the field is populated with basic html in the admin.
Now the strange thing: when I go to the product in the admin, copy the metafield content, clear the field, save the product, paste back the metafield, save again, it DOES show up in the front end!
So, uploading html content into a metafield: does not work, manually typing the same html into a metafield: works.
