On Thu, Nov 13, 2008 at 4:10 AM, Alessandro <[EMAIL PROTECTED]>wrote:

> I cannot understand where a cart becomes an order. I neet to create
> the order manually from cart, because the checkout button must be
> placed on the cart place.
>
>
> Is there any way do accomplish that?
>

It looks to me like you are not approaching the problem properly.  Almost
certainly, you do not need to manually create an order, and you really
shouldn't mess around with when the order is created unless you know
*exactly* what you are doing.  This is some of the most integral, carefully
written, and critical code in Satchmo.  Could you explain why you think you
need to do this?

That said, to answer your question directly, the order is created in
satchmo.payment.forms.SimplePayShipForm.save(), which is called during the
first step of checkout.

Answering your earlier question, if you have an order, you can get its taxed
or untaxed prices like so:

for orderitem in order.orderitem_set.all():
    taxed = orderitem.total_with_tax #note that this includes all discounts
    untaxed = orderitem.sub_total  #note that this includes all discounts

---
Bruce Kroeze
http://gosatchmo.com

--~--~---------~--~----~------------~-------~--~----~
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