How to Retrieve Products from a Metafield and Display Their Corresponding Colors

Hello @Rich152

Product A has a custom.product_limited_edition metafield (list of products).

Each related product (B, C, etc.) has its own custom.color metafield (type: single line text or color).

{% if product.metafields.custom.product_limited_edition != blank %}

{% for related_product in product.metafields.custom.product_limited_edition.value %}
{% assign color = related_product.metafields.custom.color.value %}

{{ related_product.title }} - {{ color | capitalize }}

{% endfor %}

{% endif %}