The product object contains following attributes:


Object Fields

FieldData TypeDescription
product.idStringReturns the id of the product.
product.skuStringReturns the sku of the product.
Remarks: Use the one in variations when variations available.
product.titleStringReturns the title of the product.
product.descriptionStringReturns the description of the product.
product.mediaArrayReturn the media information of the product.
product.contentStringReturns the description of the product. Alias for product.description.
product.imageStringReturn the first product image.
product.urlStringReturns the relative URL of the product.
product.priceNumberReturns the price of the product.
product.hide_priceBooleanReturn true if “hide_price” of the product is enabled.
product.price_variesBooleanReturns true if the product's variants have varying prices. Returns false if all of the product's variants have the same price.
product.price_minNumberReturns the lowest price of the product.
product.lowest_priceNumberReturns the lowest price of the product. Alias for product.price_min.
product.on_saleBooleanReturn true if the product sale price is defined.
product.sale_priceNumberReturn the product sale price.
product.variantsArrayReturns an array of the product's variants.
product.ga_click_tagStringReturn attributes for Google Analytic click tracking
product.availableBooleanReturns true if a product is available for purchase. Returns false if all of the products variants' inventory quantity values are zero or less, and they are not set to "unlimited quantity"
product.additional_imagesArrayReturns an array of additional images of this product

Code Example

{% for image in product.additional_images %}
  <img src="{{ image.src }}">
  <img src="{{ product.media.images.thumb.url }}">
{% endfor %}

<a href="{{ product.url }}" {{ product.ga_click_tag }}>