Hi Guys, i am having an issue using Metafield, If the selected variant has a stock arrival date, should show “New Stock Arriving: October 15, 2025” If the variant doesn’t have a date, it should be empty
here is my code :
{% for variant in product.variants %}
{% if variant.id == 39479736238279 %}
{% if product.handle == "square-downface-ctc" or product.metafields.custom.new_stock_arriving %}
<p><b>New Stock Arriving:</b>
{{ product.metafields.custom.new_stock_arriving | date: "%B %d, %Y" }}</p>
{% endif %}
{% endif %}
{% endfor %}
Can you please assist me with this ?