Hi everyone,
I’m dealing with a strange issue related to product metafields and how they’re rendered in the product card (e.g. on collection pages or featured product grids). I’m hoping someone in the community has come across this before.
I’ve created a product metafield that is used to show custom discount information on the product card. The logic and rendering work perfectly on older products, but when I assign the same metafield, with the same content, to a new product, it simply doesn’t appear on the storefront.
Key points:
- This is not a dynamic source block — the metafield is rendered directly in the
card-product.liquid
template using Liquid logic. - The metafield is properly defined in the admin and assigned to both old and new products.
- When applied to an old product, the value displays as expected in the product card.
- When applied to a new product (with identical metafield structure and value), nothing renders.
- I tested this in a development store and assigned the metafield to all products — again, only the older products show the data.
- I’ve verified that the metafield is populated, public, and available in the template.
- The store is using the Dawn theme, version 10.0.0.
- This is the code:
{% if full_product.metafields.custom.ahorro_cantidad != blank %}
<div class="card__ahorro">
<span class="card__ahorro-cantidad">{{ full_product.metafields.custom.ahorro_cantidad }}</span>
<span class="card__ahorro-codigo">{{ full_product.metafields.custom.ahorro_codigo }}</span>
</div>
{% endif %}
Could this be a caching issue, indexing delay, or something else with new products and how Shopify handles metafields?
Any ideas would be greatly appreciated!
Thanks,
Raquel