fix the currency calculation in the cart

This commit is contained in:
Andreas Zweili 2018-02-25 21:33:53 +01:00
parent 798cee4c58
commit 66a066165d
1 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,8 @@ def cart(request):
# enumerate the list of articles and loop over items:
for idx, cart_position in enumerate(cart_position_list):
# scrap out the details to calculate Total of item and Summ of All:
if currency:
if request.session['currency']:
currency = request.session['currency']
# get currencyname to display:
currency_name = ExchangeRate_name.objects.get(id=currency)
# get exchange_rate multiplyed: