Sorry missing one that:
I am trying to get the price from checkout confirmation page, I mean, when 
click "Next" on the page.


Hi guys,
>    In one of my views function, I wanna get final total price of the order.
>
> I tried to get from request.session['order']['total'] or 
> request.session['cart']['something'] but all failed.
>
> I print order and cart getting this sample:
> order is:
> {'card_name': u'', u'delivery_type': u'', 'remember': True, 'pay_type': 
> u'\u5fae\u4fe1\u652f\u4ed8', 'billing_detail_street': u'\u6d4b\u8bd5', 
> 'shipping_detail_first_name': u'\u502a\u6770', 'shipping_detail_street': 
> u'\u6d4b\u8bd5', u'additional_instructions': u'', 'card_type': u'', 'step': 
> 2, 'same_billing_shipping': True, u'prefer_time': 
> u'\u7acb\u5373\u9001\u9910', 'shipping_detail_phone': u'11211', 
> 'billing_detail_email': u'whatever here', 'billing_detail_phone': u'11211', 
> 'billing_detail_first_name': u'\u502a\u6770'}
>
> cart is:544
>
> So, no something like 'total' in order object, and cart is id.
>
> Maybe I can get price to query database according to the cart's id, but is 
> there any easy way to get the total price?
>
> Thanks.
> Wesley
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to