Adding Metafield in the Featured Collection Section (Refresh Theme)

Hi,

I created a product metafield and I want it to be added to my featured collection product cards.

Here after the “Vendor Name”

I tried adding this code to the liquid file, but it still didn’t show.

{% if card_product.product.metafields.custom.product_highlight %}

{{ card_product.product.metafields.custom.product_highlight }}

I tried adding it in the “Featured collection liquid, card collection and card product” but still not showing.

{% if card_product.metafields.custom.product_highlight %}
 

{{ car​​​​​​d_product.metafields.custom.product_highlight }}

{% endif %}

I modified it according to the code you provided. But from the part of the code you screenshoted, it seems to be as follows.

{% if card_collection.metafields.custom.product_highlight %}
 

{{ card_collection.metafields.custom.product_highlight }}

{% endif %}

Hello There,

Please use

{{ product.metafields.custom.product_highlight }}

Thank you

Hi @Emrana

This is Polo from MS Web Designer. I would love to assist you with your query.
Please try this code:

{% if card_collection.metafields.custom.product_highlight %}
 

{{ card_collection.metafields.custom.product_highlight }}

{% endif %}

If still not work, please let me know.

Regards
Polo