[mezzanine-users] Re: How to get order final total price in views function?

2015-05-27 Thread Wesley
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

[mezzanine-users] How to get order final total price in views function?

2015-05-27 Thread Wesley
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'',

Re: [mezzanine-users] Duplicate site permissions when saving a user at staff level

2015-05-27 Thread Stephen McDonald
Yes, specifically the latest commit of the master branch on Github (or default branch on Bitbucket, which should refer to the same commit). On Wed, May 27, 2015 at 11:33 AM, Craig craigdub...@gmail.com wrote: By development branch do u mean the dev branch? On Wednesday, May 27, 2015 at

Re: [mezzanine-users] Duplicate site permissions when saving a user at staff level

2015-05-27 Thread Stephen McDonald
It's not clear, but it sounds like you replicated the change I linked to, and didn't actually pull in the latest development branch. Since there might be other changes involved (I know there is a field change and migration that triggered the need for that change), please make sure you've pulled

[mezzanine-users] Re: How to get order final total price in views function?

2015-05-27 Thread Mathias Ettinger
Hi, Where are you trying to get this value? Is it a step handler like SHOP_HANDLER_PAYMENT or SHOP_HANDLER_ORDER? Or a regular view? If you have an order object then it should be available in order.total, given that you are “far enought” in the checkout process so it has been computed. If you

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-27 Thread Gerald Hien
If things don't work as in bootstrap docs, overwrite bootstrap css and js in your projects static folder with current versions, since the ones included in mezzanine are somewhat outdated (3.0.3 fro D Am Mittwoch, 27. Mai 2015 19:06:49 UTC+2 schrieb Simon Griffee: Thanks, Stephen — understood.

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-27 Thread Simon Griffee
Thanks, Tom. It does help, and I think you're right! I'll get to work now. On Wed, May 27, 2015 at 12:39 PM, Tom Lockhart tlockhart1...@gmail.com wrote: On May 27, 2015, at 9:16 AM, Simon Griffee simongrif...@gmail.com wrote: I'm beginning work on a Mezzanine theme focussed on blog

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-27 Thread Simon Griffee
Thanks, Stephen — understood. Once I have something to show I'll post a link here. Design: www.hypertexthero.com Photography: www.simongriffee.com Email: si...@hypertexthero.com Phone: +1 (347) 498-5369 On Wed, May 27, 2015 at 12:55 PM, Stephen McDonald st...@jupo.org wrote: Agree with Tom,

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-27 Thread Stephen McDonald
Agree with Tom, use bootstrap if it helps you. I just wanted to point out though that nothing in Mezzanine really depends on bootstrap - if you wanted to start from scratch, using an alternative framework or none at all, you certainly can. On Wed, May 27, 2015 at 9:46 AM, Simon Griffee

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-05-27 Thread Mathias Ettinger
Just to echo Stephen's words, I built a site removing almost everything theming related. Keeping almost only the magnify-popup javascript. And it works pretty well. Le mercredi 27 mai 2015 19:38:21 UTC+2, Gerald Hien a écrit : If things don't work as in bootstrap docs, overwrite bootstrap

[mezzanine-users] Re: How to get order final total price in views function?

2015-05-27 Thread Wesley
Hi, I am trying to get this guy jus in a regular view. My scenario is: Within checkout confirmation page, when click on 'next' to complete the order, raises a ajax request to a regular view to do something,and in this view function(only request available) I need ordr total. But, currently in

Re: [mezzanine-users] Re: How to get order final total price in views function?

2015-05-27 Thread Wesley
Hi Stephen, Thanks for your reply. I haven't realized the _order_totals tag before. Will have a look :-) Wesley You're kind of mimicking the _order_totals function which gets used in template tags:

[mezzanine-users] Re: new release? - Possible Mezzanine Bug in relation to mezzanine.jupo.org install

2015-05-27 Thread Graham Oliver
Hello everyone Using PostgreSQL in a virtual environment When I go through the install process for the mezzanine.jupo.org web site I am encountering a problem with the latest Django version 1.8.2 Note the problem does *not* occur with 1.7.8 Here is a description and stack trace of the problem

Re: [mezzanine-users] Re: How to get order final total price in views function?

2015-05-27 Thread Stephen McDonald
You're kind of mimicking the _order_totals function which gets used in template tags: https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/templatetags/shop_tags.py#L34 You could probably do something like: from cartridge.shop.templatetags.shop_tags import _order_totals order_vars