{% extends 'user/components/base.html' %} {% block title %}Shop{% endblock %} {% block body %} {% load static %} {% if request.GET.category %} Shop > {% if request.GET.brand %} {{request.GET.category}} > {{request.GET.brand}} {% else %} {{request.GET.category}} {% endif %} {% endif %} {% if categories %} Main Categories {% for category in categories %} {{category.name}} {% endfor %} {% endif %} {% if brands %} Brands for {{request.GET.category}} {% for brand in brands %} {{brand.name}} {% endfor %} {% endif %} {% if products %} We found {{ products.paginator.count }} item{{ products.paginator.count|pluralize }} for you! {% for product in products %} {% if product.quantity == 0 %} Out Of Stock {% endif %} {{product.brand.name}} {{product.name}} {% if product.sale_price %} MMK {{product.sale_price}} MMK {{product.regular_price}} {% else %} MMK {{product.regular_price}} {% endif %} {% endfor %} {% if products.has_other_pages %} {% if products.has_previous %} « {% endif %} {% for num in products.paginator.page_range %} {% if products.number == num %} {{ num|add:"0"|stringformat:"02d" }} {% else %} {{ num|add:"0"|stringformat:"02d" }} {% endif %} {% endfor %} {% if products.has_next %} » {% endif %} {% endif %} {% elif request.GET.category and request.GET.brand %} No products found in {{request.GET.category}} for brand {{request.GET.brand}}. {% endif %} {% endblock %}
We found {{ products.paginator.count }} item{{ products.paginator.count|pluralize }} for you!
No products found in {{request.GET.category}} for brand {{request.GET.brand}}.