title: Shopify liquid : cart-template variant is not defined
body: <p>I am simply allowing to checkout out of stock product to buy. When a customer wants to buy product has inventory less than zero and clicks on view cart from ajax cart, I simply want to show message " dispatch by 7 June." in <code>cart-template.liquid</code>.I have applied logic as given below. If required full code ready to share.</p>
  
  <pre><code>{% if variant.inventory_quantity &lt; 1%}
  &lt;p id="dispatch" style="color: #f48c21"&gt;Will be dispatched by June 7&lt;/p&gt;
  {{variant.inventory_quantity}}
  {% endif %}
  &lt;script&gt;console.log(variant.inventory_quantity)&lt;/script&gt;
  </code></pre>
  
  <p>when I print the message in <code>cart-template.liquid</code> without <code>if</code> condition I can see this message. I found that it does not print anything inside <code>{{}}</code> also checked with <code>console.log</code> gives error as <code>variant is not defined</code> My query Is do I need to define <code>variant</code> manually? if yes how? or need to use a different liquid variable to check inventory quantity of product less than zero? 
  Let me know if any more are required. Thanks.</p>