{% extends "base.html" %} {% block title %}迷你小電商{% endblock %} {% block content %} {% load mvote_extras %}
{{today}} {% for message in messages %}
{{ message }}
{% endfor %}

歡迎光臨迷你小電商
【{{category.name | default:"全部產品"}}】

{% if user.is_authenticated %} {% if user.socialaccount_set.all.0.extra_data.name %} {{user.socialaccount_set.all.0.extra_data.name}}
{% else %} Welcome: {{ user.username }} {% endif %} {% else %}

歡迎使用Facebook註冊/登錄你的賬號才能購買本站優惠商品(教學測試用)。

{% endif %}
{% if products.has_previous %} {% endif %} {% if products.has_next %} {% endif %}
{% load account %} {% for product in products %} {% cycle '
' '' '' '' %}

{{ product.name }}

NT$ {{product.price }}

庫存:{{product.stock}}

{% if user.is_authenticated %} {% endif %}
{% cycle '' '' '' '
'%} {% empty %}

此分類目前沒有任何商品

{% endfor %} {% if cart.count > 0 %} 目前購物車中共有 {{ cart.count }} 項產品 {% else %}

此購物車為空

{% endif %}
{% endblock %}