Skip to Content

Inventory

The inventory object describes an inventory location, including its name, description, and stock policy.

Usage Example

{%- comment -%} Show inventory location details {%- endcomment -%} <p>{{ inventory.title }}</p> {% if inventory.description %}<p>{{ inventory.description }}</p>{% endif %} <p>Policy: {{ inventory.policy }}</p>

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’.