diff --git a/django/didgeridoo/webshop/templates/webshop/cart.html b/django/didgeridoo/webshop/templates/webshop/cart.html index 7dd5127..637d524 100644 --- a/django/didgeridoo/webshop/templates/webshop/cart.html +++ b/django/didgeridoo/webshop/templates/webshop/cart.html @@ -8,6 +8,7 @@ ID NAME STOCK + AMOUNT PRICE {% for article in articles_list %} @@ -18,6 +19,7 @@ {{ article.article.name }} {{ article.article.stock }} + {{ article.amount }} {{ article.article.price_in_chf }} {{ currency_name }} {% endfor %} diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index 3962d07..32fab77 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -232,6 +232,8 @@ def cart(request): article_view = True currency_name = "CHF" message = "" + cart_id = False + articles_list = "" if not 'currency' in request.session: request.session['currency'] = None