Personalized checkout and custom promotions with Shopify Scripts
Hi,
I have this script running to show expected date of incoming inventory, it worked fine on the shopify 1.0 theme but now won't show properly in the upgraded 2.0.. any help appreciated!
{% unless product.title contains 'Gift' %}
{% assign variant = product.variants.first %}
{% if variant.inventory_quantity <= 0 and variant.available and variant.inventory_management != '' %}
<p style="color:#ea002a">Available To PreOrder</p>
{% endif %}{% endunless %}
{% if variant.inventory_quantity <= 0 and variant.incoming %}
{{ variant.next_incoming_date | date: "Expected %a, %b %d, 20%y"}}
{% endif %}
{% unless variant.incoming %} {%if variant.available and variant.inventory_quantity <= 0 %} <p style="color:#ea002a"> {{"We can special order this item from our supplier"}}<br/>{{"Contact us for lead times"}}</p>
{% endif %}{% endunless %}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025