Added total nr of orders to order.html

This commit is contained in:
Titouan Vervack 2018-03-08 23:23:40 +01:00
parent 8b1b708695
commit 628c5e55c5

View file

@ -78,7 +78,7 @@
</table>
</div>
<div class="col-md-push-2 col-md-4 darker" id="items-ordered">
<h3>Ordered products:</h3>
<h3>Ordered products: {% len(order.items) %}</h3>
{% for key, value in order.group_by_product().items() -%}
<div class="product">
{{ key }}: {{ value["count"] }}