That will block a/c


On 1月17日, 上午4时32分, Bernard <[email protected]> wrote:
> Hey there,
>
> I just noticed how the Order status didn't change once we reach the
> checkout success page. It would show an empty status line once it says
> "thank you for your order".
>
> By reading the source code on how I could add a status to an Order at
> the right moment, I reached this conclusion:
>
> I would have to use the add_status() function that is part of the
> Order Model.
>
> and that change would be made in satchmo.payment.views.checkout.py
> under line 13:
>
> *****
> try:
>         order = Order.objects.from_request(request)
>         order.add_status("Pending", "Added automatically by the
> system")
>     except Order.DoesNotExist:
>         return bad_or_missing(request, _('Your order has already been
> processed.'))
> *****
>
> and this little correction gives me this 
> screen:http://www.picoodle.com/view.php?img=/3/1/16/f_yeahhm_11ab730.png&srv...
>
> yaaa!
>
> is this a correct patch?
>
> I also found out that although it says it will send an email with this
> information, it actually doesn't. I'll have to use the email class in
> the same spot.
>
> I really love how satchmo work and I wish this could be a little
> contribution from me :D
>
> thanks
>
> Bernard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to