diff --git a/django/didgeridoo/webshop/models.py b/django/didgeridoo/webshop/models.py index 111f346..33c9106 100644 --- a/django/didgeridoo/webshop/models.py +++ b/django/didgeridoo/webshop/models.py @@ -86,6 +86,9 @@ class Order(models.Model): date = models.DateTimeField(default=timezone.now) exchange_rate = models.ForeignKey(ExchangeRate) + def __str__(self): + return str(self.id) + class OrderPosition(models.Model): """ Items in Submitted Orders""" diff --git a/django/didgeridoo/webshop/templates/webshop/checkout.html b/django/didgeridoo/webshop/templates/webshop/checkout.html index 0802077..a680d0d 100644 --- a/django/didgeridoo/webshop/templates/webshop/checkout.html +++ b/django/didgeridoo/webshop/templates/webshop/checkout.html @@ -2,6 +2,7 @@ {% block section_title %}
Salutation: {{ person.salutation }}
@@ -17,48 +18,58 @@ {% endif %} - {% if articles_list %} -POS. | ART# | NAME | STOCK | AMOUNT | -PRICE p.pce. | -POSITION PRICE | +PRICE p.pce. | +POSITION PRICE | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ article.id }} | -{{ article.article.id }} | +{{ cart_position.id }} | +{{ cart_position.article.id }} | - - {{ article.article.name }} + + {{ cart_position.article.name }} | -{{ article.article.stock }} | -- {{ article.amount }} - | -- {{ article.article.price_in_chf }} + | {{ cart_position.article.stock }} | +{{ cart_position.article.amount }} | ++ {{ cart_position.article.price_in_chf }} {{ currency_name }} | -{{ article.position_price }} {{ currency_name }} | ++ {{ cart_position.position_price }} {{ currency_name }} + | |
- Total: {{ total }} {{ currency_name }} + | + |
+
|
+
+
|
- Something whent wrong. Your cart is empty. + Your cart seamed to lack Items. + Go get some in the store!
{% endif %} diff --git a/django/didgeridoo/webshop/templates/webshop/nav.html b/django/didgeridoo/webshop/templates/webshop/nav.html index f65151f..d43e0e3 100644 --- a/django/didgeridoo/webshop/templates/webshop/nav.html +++ b/django/didgeridoo/webshop/templates/webshop/nav.html @@ -13,6 +13,9 @@ {% else %}