diff --git a/django/didgeridoo/webshop/templates/webshop/checkout.html b/django/didgeridoo/webshop/templates/webshop/checkout.html index 9fa82ef..0802077 100644 --- a/django/didgeridoo/webshop/templates/webshop/checkout.html +++ b/django/didgeridoo/webshop/templates/webshop/checkout.html @@ -3,7 +3,7 @@ {% block content %}

Preview your Purchase:

Shipping Address:

- {% if user_list %} + {% if person %}

Salutation: {{ person.salutation }}

Firstname: {{ request.user.first_name }}

Lastname: {{ request.user.last_name }}

diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index 261f9e0..ad946bd 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -405,6 +405,7 @@ def checkout(request): checkout_form = CheckoutForm() registration_form = RegistrationForm() + person = Person.objects.get(user=request.user.id) return render(request, 'webshop/cart.html', {'cart_position_list_zip': cart_position_list_zip, @@ -418,4 +419,5 @@ def checkout(request): 'currency_name': currency_name, 'category_list': category_list, 'message': message, + 'person': person })