On Wed, Oct 22, 2008 at 9:58 AM, Martin <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm developing a feature for my webshop and I've run into some
> problems. I want to add a contact field to the PaymentContactInfoForm,
> this I have done by using the signal:
> payment.signals.payment_form_init and I've edited the template which
> uses this form. This is working as it should.
>
> I was planning on using the contact.signals.form_save signal to catch
> the PaymentContactInfoForm save event and then create my OrderComment
> and associate it with the order, but as far as I can see, the order
> has not yet been created when the event occurs.


Great description, and a reasonable thing-to-want-to-do.

I've added a "form_save" signal to the payment module in [1643].  It will be
called after the order is created.  Note that it is called by both
SimplePayShipForm and CreditPayShipForm, so make sure to listen to only the
one you want, or you'll be saving your customer comment twice.

Enjoy.

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