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 }} - a name of the product

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

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

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

    Possible values:

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

    Possible values:

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

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

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

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

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

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

  • {{ product.special_price }} - a 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 }} - a regular/base price of the product

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

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

    Note

    If product is assigned to a few categories, extension selects Category using next logic:
    There always is selected the most nested category. For example, if a product is assigned to a few categories at different level, the attribute {category} returns the name of the category that is the most nested in the category tree.
    If product is assigned to a few categories at the same level, the extension selects a category with the lowest position of the product. Change 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 product is assigned to a few categories, extension selects Category Id using next logic:
    There always is selected the most nested category id. For example, if a product is assigned to a few categories at different level, the attribute {category_id} returns the id of the category that is the most nested in the category tree.
    If product is assigned to a few categories at the same level, the extension selects a category id with the lowest position of the product. Change position of the product you can at 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, extension selects Category Path using next logic:
    There always is selected the most nested category path. For example, if a product is assigned to a few categories at different level, the attribute returns the path that is the most nested in the category tree.
    If product is assigned to a few categories at the same level, the extension selects a category with the lowest position of the product. Change position of the product you can at Catalog > Manage Categories, tab Category Products

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

    The direct url to parent category.

    Note

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

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

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

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

    Possible values:

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

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

  • {{ product.small_image }} - a direct url to 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 suffix .parent ({{ product.parent.name }}, {{ product.parent.price }}, {{ product.parent.url }} etc), if you need return value of parent product.

Example

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

Note: Parent suffix is very useful when you export simple products with visibility Not Visible Individually. In this case, 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 %}