From f7e8b9cd85e06c9c9aee319a198a59b75d46338b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Fri, 2 Mar 2018 16:07:33 +0100 Subject: [PATCH] show exchangerate in checkout --- django/didgeridoo/webshop/templates/webshop/checkout.html | 8 ++++++++ django/didgeridoo/webshop/views.py | 1 + 2 files changed, 9 insertions(+) diff --git a/django/didgeridoo/webshop/templates/webshop/checkout.html b/django/didgeridoo/webshop/templates/webshop/checkout.html index f8e32b3..95ab7c3 100644 --- a/django/didgeridoo/webshop/templates/webshop/checkout.html +++ b/django/didgeridoo/webshop/templates/webshop/checkout.html @@ -59,6 +59,14 @@
{{ total }} {{ currency_name }}
+ + + +
Exchange Rate to 1 CHF:
+ +
{{ exchange_rate }}
+ +
{% csrf_token %} diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index 3dccb93..ea6fd80 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -416,6 +416,7 @@ def checkout(request): 'category_list': category_list, 'message': message, 'person': person, + 'exchange_rate': exchange_rate, })