All things Shopify and commerce
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.
Hi @Erwin4,
Next time you're looking to add another text field to the product page, I suggest trying out the free Easify Product Options app. It's a quick and easy setup, no coding required, and it works like a charm 🤗.
User | RANK |
---|---|
51 | |
47 | |
39 | |
28 | |
21 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023