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.
Then I want the comment to be associated with an order. I've created a small app with my OrderComment model[1], which works if I create the OrderComment from the admin interface, but if I want to create it in the exising checkout code I run into a problem. 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. The order is created when the user submits the SimplePayShipForm. Is there any way I can get hold of the comment when the SimplePayShipForm is submitted so I can make my OrderComment and associate it with the newly created order? [1] = class OrderComment(models.Model): order = models.ForeignKey(Order, unique=True) comment = models.CharField(max_length=1000) Best Regards Martin P.S. Let me know if I need to clarify the problem further. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
