{% extends 'qshop/shoppage.html' %} {% load sitemenu thumbnail %} {% block shopcontent %} {% if menu.get_childs %}

Subcategories

{% for child in menu.get_childs %} {{ child.title }} {% endfor %} {% endif %} {% if productdata.products_page.object_list or productdata.filters %}

Products

{% if productdata.filters %} {% for filter_id, filter_data in productdata.get_filters %}
{{ filter_data.name }}: {% for value_id, value_data in filter_data.values %} {% if value_data.active %} ☑ {{ value_data.name }}({{ value_data.count }}) {% elif value_data.unaviable %} ☒ {{ value_data.name }}({{ value_data.count }}) {% else %} ☐ {{ value_data.name }}({{ value_data.count }}) {% endif %} {% endfor %}
{% endfor %} {% endif %} {% comment %} Also ?filterset= is aviable. It will reset filters in it's category. {% endcomment %}
Sorting: {% for variant in productdata.get_sorting_variants %} {% if variant.selected %}{% endif %}{{ variant.name }}{% if variant.selected %}{% endif %} {% endfor %}
{% for product in productdata.products_page.object_list %} {% endfor %}
Image Name Price
{{ product.name }} {% if product.has_variations %}from {% endif %}{{ product.get_fprice }}{% if product.has_discount %} old price: {{ product.get_fprice_real }}{% endif %}
{% endif %} {% endblock shopcontent %}