Follow

Product List

Variable Usage Explanation
id (int) {% for product in products %}
  {{ product.id }}
{% endfor %}
Returns the ID of the product.
label (str) {% for product in products %}
  {{ product.label }}
{% endfor %}
Returns the label of the product.
status (int) {% for product in products %}
  {{ product.status }}
{% endfor %}
Returns the status of the product.
stockAmount (int) {% for product in products %}
  {{ product.stockAmount }}
{% endfor %}
If "do not track" checkbox is checked it returns 0, if it is not it returns stock amount of the product.
stockTracking (int) {% for product in products %}
  {{ product.stockTracking }}
{% endfor %}
If "do not track" checkbox is checked it returns nothing, if it is not it returns 1.
sku (str) {% for product in products %}
  {{ product.sku }}
{% endfor %}
Returns sku (stok keeping unit) of the product.
shippingAddressRequired (int) {% for product in products %}
  {{ product.shippingAddressRequired }}
{% endfor %}
If "shipping address required" checkbox is checked it returns 1, if it is not it returns nothing.
creationDate {% for product in products %}
  {{ product.creationDate }}
{% endfor %}
Returns creation date of the product.
lastUpdate {% for product in products %}
  {{ product.lastUpdate }}
{% endfor %}
Returns last update of the product.
price {% for product in products %}
  {{ product.price }}
{% endfor %}
Returns price of the product without currency. Example : If the price is "100 USD", it returns "100"
brand.title {% for product in products %}
  {{ product.brand.title }}
{% endfor %}
Returns the name of the brand.
brandId (int) {% for product in products %}
  {{ product.brandId }}
{% endfor %}
Returns th ID of the product.
url (str) {% for product in products %}
  {{ product.url }}
{% endfor %}
Returns the URL of the product.
buyingPrice {% for product in products %}
  {{ product.buyingPrice }}
{% endfor %}
Returns the buying price info of the product if entered. If it is not entered it returns 0.
sellingPrice {% for product in products %}
  {{ product.sellingPrice }}
{% endfor %}
Returns the selling price of the product if entered. If it is not entered it returns 0.
metaTitle (str) {% for product in products %}
  {{ product.metaTitle }}
{% endfor %}
Returns the meta title of the product.
metaKeywords (str) {% for product in products %}
  {{ product.metaKeywords }}
{% endfor %}
Returns the meta keywords of the products.
metaDescription (str) {% for product in products %}
  {{ product.metaDescription }}
{% endfor %}
Returns meta description of the product.
weight (int) {% for product in products %}
  {{ product.weight }}
{% endfor %}
Returns the weight of the product.
categories (array) {%for cat in product.categories%}
  {{cat.title}}
{% endfor %}
Returns categories of the product.
images[1].path.original {% for product in products %}
  <img src="{{product.images[1].path.original}}"/>
{% endfor %}
Returns the image of the product.
productCount (int) {% for product in products %}
  {{ productCount }}
{% endfor %}
Returns the total product number.
pageCount (int) {% for product in products %}
  {{ pageCount }}
{% endfor %}
Returns the total page number.
currentPage (int) {{currentPage}} Returns the page in which the product appears.
categoryTree (array) {% for categoryNode in categoryTree%}
 {{categoryNode.title}}
{% endfor %}
Returns the name of the categort. Can only be used in categories.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk