From 4735efb660fbb5a5b9ca8fd8ff5cd7900f79c8ed Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Wed, 1 Jun 2016 09:36:42 +0200 Subject: [PATCH] shine up the bank order page a bit --- shop/templates/bank_transfer.html | 5 ++++- shop/views.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shop/templates/bank_transfer.html b/shop/templates/bank_transfer.html index 4df2683a..0da1cd77 100644 --- a/shop/templates/bank_transfer.html +++ b/shop/templates/bank_transfer.html @@ -4,12 +4,15 @@ {% block shop_content %}

Pay by Bank Transfer

+

To pay order #{{ orderid }} you need to make a bank transfer +of the full amount of {{ total|currency }} to the following account:

IBAN: {{ iban }}
Swift/BIC: {{ swiftbic }}

-

Note: Please allow for up to a week before we register your bank transfer, especially if you are outside of the SEPA region.

+

Note: Please allow for up to a week before we register your bank +transfer, especially if you are outside of the SEPA region.

{% endblock %} diff --git a/shop/views.py b/shop/views.py index 77a327a0..d64b32ea 100644 --- a/shop/views.py +++ b/shop/views.py @@ -383,6 +383,8 @@ class BankTransferView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUnpai context = super(BankTransferView, self).get_context_data(**kwargs) context['iban'] = settings.BANKACCOUNT_IBAN context['swiftbic'] = settings.BANKACCOUNT_SWIFTBIC + context['orderid'] = self.get_object().pk + context['total'] = self.get_object().total return context #################################################################################