Hello, there
I have created a product metafield and added a code to a product.
The code:
| <br> <br>**Size **<br><br> | Material |
| - | - |
| <br> <br><br><br><br><br> | |
| <br> <br>**Weight**<br><br> | Package |
| | |
What code is to paste to the Tab Custom Liquid block to fetch the first code to display at frontend side?
You cannot choose a metafield with textarea. Otherwise in customizer shopify shows option to choose a metafield you can change the input type from textarea to HTML and than show your form.
Go to product.liquid file
Search tab Custom liquid and change the type from textarea to html
Hello, there
Thanks for your reply. I refer to this article
There’s no html but json that I could choose. I don’t know the json.
Hello @Bethchan56 ,
You can try to use this code:
{% assign tableCode = product.metafields.custom.namespace.table_code %}
{% if tableCode %}
{{ tableCode }}
{% endif %}
Let us know if it works.
Transcy
Hello,
It works after I replace “product.metafields.custom.namespace.table_code” with “product.metafields.custom.specification ” .
Thank you so much.
{% assign tableCode = product.metafields.custom.specification %}
{% if tableCode %}
{{ tableCode }}
{% endif %}