show exchangerate in checkout

This commit is contained in:
Ivan Hörler 2018-03-02 16:07:33 +01:00
parent bbb12e154f
commit f7e8b9cd85
2 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,14 @@
<dt><dl>{{ total }} {{ currency_name }}</dl></dt>
</td>
</tr>
<tr>
<td scope="col" colspan="5" class="text-right">
<td scope="col" class="price-value">
<dt><dl>Exchange Rate to 1 CHF:</dl></dt></td>
<td scope="col" class="price-value">
<dt><dl>{{ exchange_rate }}</dl></dt>
</td>
</tr>
</table>
<form id="checkout_form" action="{% url 'cart' %}" method="POST">
{% csrf_token %}

View File

@ -416,6 +416,7 @@ def checkout(request):
'category_list': category_list,
'message': message,
'person': person,
'exchange_rate': exchange_rate,
})