The variant object
How to access it
- Use
{{ order.line_items[n].variant }}
in tasks responding to shopify/orders events - Use
{{ product.variants[n] }}
in tasks responding to shopify/products events
What it contains
- Every property from the Shopify API
- An array of related inventory level objects:
{{ variant.inventory_levels }}
- The related inventory item object:
{{ variant.inventory_item }}
- The related product object:
{{ variant.product }}
- The related metafields object:
{{ variant.metafields }}