This template is used to display product pages.
This resource is required
<h1>{{ product.name }}</h1> ID: {{ product.id }} <br/> Name: {{ product.name }} <br/> Handle: {{ product.handle }} <br/> Brief: {{ product.body-text }} <br/> Description: {{ product.body-html }} <br/> Tags: {{ product.tags }} <br/> First image: {{ product.images.first }} <br/> Stock: {{ product.stock }} <br/> Tax: {{ product.tax }} <br/> Created: {{ product.created }} <br/> <h2>All images</h2> {% for image in product.image %} Image source: {{ image.src }} <br/> Image position: {{ image.position }} <br/> {% endfor %}
From /templates/product.liquid you have access to the following variables:
Variable | Type | Description |
---|---|---|
product | Object | An object containing all product data |
product.id | String | The product unique Ticket Rewards id |
product.name | String | The name of the product |
product.handle | String | The product handle |
product.html-body | String | The description of your product |
product.tags | String | Your product tags |
product.images.first | String | The source of the first product image. This is in fact a link to product.image.0.src |
product.stock | Int | The stock of the product |
product.tax | Float | The VAT or tax of the product |
product.created | Int | The timestamp of the product creation |
Blog • Privacy Policy • Terms & Conditions • Copyright 2024 Ticket Rewards