I want to add this field in the product grid.
See picture below.
Here is the code of the field in the product page in yellow:
.gerundetes-element p {
background-color: #FFD700;
padding: 2px;
border-radius: 10px;
display: inline;
font-size: 20px;
}
Gerundete Ecken
??"...Riecht wie {% if product.metafields.custom.riecht_wie_ %}
{{ product.metafields.custom.riecht_wie_ | metafield_text}}“
{% else %}
eine bekannte Luxusmarke"
{% endif %}
check this code
{% for product in collection.products %}
??"...Riecht wie {% if product.metafields.custom.riecht_wie_ %}
**{{ product.metafields.custom.riecht_wie_ | metafield_text}}“**
{% else %}
**eine bekannte Luxusmarke"**
{% endif %}
{% endfor %}
Can you not use a Rich Text metafield to hold the HTML value?
Look how it looks now
I need the correct metafield for each product