Inventory
The inventory object describes inventory information for a product or variant, including available quantity and status.
Usage Example
{%- comment -%} Show inventory status {%- endcomment -%}
{% if inventory.available %}
<p>In stock: {{ inventory.quantity }} items</p>
{% else %}
<p>Out of stock</p>
{% endif %}Properties
title
The display name of the inventory.
description
A detailed description of the inventory, if available.
policy
Indicates whether purchases are allowed when stock is depleted. Returns ‘continue’ if purchases are permitted over stock, otherwise ‘deny’.