Displaying additional info in a COD checkout confirm page

8 views
Skip to first unread message

Thomas

unread,
Apr 8, 2012, 9:47:47 AM4/8/12
to satchm...@googlegroups.com
Hi,

How do I get extra user data into a COD confirm page?

I have additional info (user_data) for each user account as per https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users

so,    user_data = Contact.objects.get(user=request.user.id)

I need to display some of this info in http://127.0.0.1:8000/checkout/cod/confirm/

so, I have a local copy of base_confirm.html (in templates/shop/checkout/base_confirm.html)

My problem is that I need to pass the 'user_data' dictionary to base_confirm.html. Is there any way of doing this without copying/re-writing everything in satchmo/satchmo/apps/payment/views/confirm.py ?

Many thanks,
Thomas
Reply all
Reply to author
Forward
0 new messages