Display a Metafield for the selected Variant

I have this code:

Ready to ship starting {% for variant in product.variants %}
{% if variant == product.selected_or_first_available_variant %}
{{variant.metafields.my_fields.ethnicraft_date.value | date: “%a, %b %d, %Y” }}.
{% endif %}
{% endfor %} Please note this date can change based on Workshop Partner delays.

in a custom liquid file in Shopify 2.0 product template.

It is displaying: “Ready to ship starting Mon, May 23, 2022. Please note this date can change based on Workshop Partner delays.”

I just can’t figure out how to get it to change with the variant since each variant has a different date.

Best,

Maria O

@Maria_Urban

I understood the issue. This solution required to implement some JavaScript code which is trigger on variant change and update the date according to the selected variant. I suggest to hire any developer or contact me by mail for more help.