What's your biggest current challenge? Have your say in Community Polls along the right column.

Why isn't my inventory date display script working in the updated theme?

Why isn't my inventory date display script working in the updated theme?

Tony_Rawson
New Member
4 0 0

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 %}

Replies 0 (0)