List of Patterns

All patterns must be enclosed in curly brackets. In patterns you can use codes of attributes, filters, links to parent products, base php functions and calculations.

The base pattern schema {{ entity.attribute | filter | filter }}

Attribute Patterns

  • {{ product.entity_id }} - ID of the product

  • {{ product.sku }} - an identifier of the product

  • {{ product.name }} - the name of the product

  • {{ product.description }} - the description of the product

  • {{ product.short_description }} - the short description of the product

  • {{ product.status }} - the status of the product

    Possible values:

    • Enabled
    • Disabled
  • {{ product.visibility }} - the visibility of the product

    Possible values:

    • Not Visible Individually
    • Catalog
    • Search
    • Catalog, Search
  • {{ product.url_key }} - the url key of the product

  • {{ product.url }} -the direct url to the product

  • {{ product.price }} - price of product (without discounts, catalog rules etc)

  • {{ product.regular_price }} - regular price of the product

  • {{ product.final_price }} - final price (saleable) of the product

    The price of product after applying special price and catalog price rules.

  • {{ product.special_price }} - special price of the product

    The special price of the product.

    Special price ignore values of Special Price From Date and Special Price To Date

  • {{ product.regular_price }} - regular/base price of the product

  • {{ product.tax_rate }} - tax rate for the product

  • {{ product.category }} - the name of the assigned category to the product

    Note

    If the product is assigned to a few categories, the extension selects Category using this logic:
    The most nested category is always selected. For example, if a product is assigned to a few categories at different levels, the attribute {category} returns the name of the category, that is the most nested in the category tree.
    If the product is assigned to a few categories at the same level, the extension selects a category with the lowest position of the product. Change the position of the product you can at Catalog > Manage Categories, tab Category Products

  • {{ product.category.id }} - a ID of the assigned category to the product

    Note

    If the product is assigned to a few categories, the extension selects Category Id using this logic:
    The most nested category id is always selected. For example, if a product is assigned to a few categories at different levels, the attribute {category_id} returns the id of the category, that is the most nested in the category tree.
    If a product is assigned to a few categories at the same level, the extension selects a category id with the lowest position of the product. To change position of the product go to Catalog > Manage Categories, tab Category Products

  • {{ product.category.path }} - a path of the category names

    E.g. Computers > Notebooks > Apple

    Note

    If product is assigned to a few categories, the extension selects Category Path using this logic:
    The most nested category path is always selected. For example, if a product is assigned to a few categories at different levels, the attribute returns the path that is the most nested in the category tree.
    If a product is assigned to a few categories at the same level, the extension selects a category with the lowest position of the product. To change the position of the product go to Catalog > Manage Categories, tab Category Products

  • {{ product.category.url }} - a direct url of the assigned category to the product

    The direct url to the parent category.

    Note

    If the product is assigned to a few categories, the extension selects a Category Url using this logic:
    The most nested category url is always selected. For example, if a product is assigned to a few categories at different levels, the attribute {{ product.category.url }} returns the url of the category that is the most nested in the category tree.
    If the product is assigned to a few categories at the same level, the extension selects a category id with the lowest position of the product. To change the position of the product go to Catalog > Manage Categories, tab Category Products

  • {{ product.attribute_set }} - name of the assigned attribute set to the product

  • {{ product.qty }} - quantity of the product

  • {{ product.is_in_stock }} - stock status of the product

    Possible values:

    • 0 - Out of Stock
    • 1 - In Stock
  • {{ product.image }} - direct url to base image of the product

  • {{ product.thumbnail }} - direct url to the thumbnail image of the product

  • {{ product.small_image }} - direct url to the small image of the product

  • {{ product.gallery[0] }}, {{ product.gallery[1] }} ... - a direct url to gallery images of the product

  • {{ product.rating_summary }} - average product rating (from 0 to 5)

  • {{ product.reviews_count }} - number of approved reviews

Parent product values

You can use the suffix .parent ({{ product.parent.name }}, {{ product.parent.price }}, {{ product.parent.url }} etc), if you need to return value to the parent product.

Example

If the current product associated with configurable/grouped/bundled product, pattern {{ product.parent.url }}, will return the URL to the parent product. If extension can't find the parent product, it uses the current product.

Note: Parent suffix is very useful when you export simple products with visibility Not Visible Individually. In this case, the product can't have a direct link, so you must use a link to the parent product.

Examples

{% for product in context.products %}

    {% for image in product.gallery %}
    <picture>{{ image }}</picture>
    {% endfor %}

    <created>{{ product.created_at | dateFormat: 'd.m.Y H:i:s' }}</created>
{% endfor %}