{% extends "catalog/node.html" %} {% macro render_product_list_view(product, node=None, name=None, description=None, product_list_name=None) -%} {% set description = description or product.description %} {% if product.__name__ == 'product.template' %} {% set product = product.products_displayed_on_eshop[0] %} {% endif %} {% if not name %} {% if node and node.display == 'product.template' %} {% set name = product.template.name %} {% else %} {% set name = product.name %} {% endif %} {% endif %} {% set product_url = product.get_absolute_url(path=(node and node.slug or None), node=(node and node.id or None)) %}
{{ product.name }}
{{ name|safe|truncate(50) }}
{% if product.brand %}
by {{ product.brand }}
{% endif %}

{{ product.get_description() or '' }}

{% if product.is_gift_card %}
{{ product.gc_min|currencyformat(current_locale.currency.code) }} - {{ product.gc_max|currencyformat(current_locale.currency.code) }}
{% else %}
{{ product.sale_price()|currencyformat(current_locale.currency.code) }}
{% if product.salable %}
{% if product.type == 'goods' %} {% set status = product.inventory_status() %} {{ status[1] }} {% endif %}
{% else %}
This product is not for sale
{% endif %} {% endif %}
{% endmacro %} {% block main %}

{{ node.name }}

{% if node.description %}

{{ node.description|safe }}

{% endif %}
{% if products.page==1 and node.children %}
{% for child in node.children %} {% endfor %}
{% endif %}
{{ products.begin_count }} to {{ products.end_count }} of {{ products.count }} results for {{ node.name }}
{% for product in products %}
{{ render_product_list_view(product, node=node, product_list_name="Node List") }}
{% endfor %}
{{ render_pagination(products, endpoint='product.tree_node.render', active_id=node.id, slug=node.slug) }}
{% endblock main%}