You might want to take a look at using an OrderVariable to store the information when it is returned. I've used it in the past for shipping type information and can work well.
https://bitbucket.org/chris1610/satchmo/src/b8162a1a538c/satchmo/apps/satchmo_store/shop/models.py#cl-631 -Chris On Mon, Jul 16, 2012 at 11:17 AM, Tomas Neme <[email protected]> wrote: > I'm writing a shipper for the new Canada Post shipping API ( > https://www.canadapost.ca/cpotools/apps/drc/home?execution=e1s1 ) > > I'm pretty advanced in this, I've already covered the current behavior > of the canada post shipper, but I need to add some post-purchase > processing. Basically, the API allows for the creation of printable > labels, which would need to be created from the admin side of things, > once the parcel is built and ready for pickup. > > The thing is that for this, I need to save some of the selected > service data: the GetRates response comes with links to request the > different services, and each service has a product code, and the > normal payship form method saves just the method (Canada Post), and > description (in my case Canada Post - { method name }), but there > seems to be no way of saving the product code and the link, and such. > I guess there must be some signal I can hook into that makes sense to > update some model of my own that'll be linked to the order and hold > the links and such, but I'm not finding it. > > Can someone give me a hand at this? > > Thanks > Tomas > > -- > "The whole of Japan is pure invention. There is no such country, there > are no such people" --Oscar Wilde > > |_|0|_| > |_|_|0| > |0|0|0| > > (\__/) > (='.'=)This is Bunny. Copy and paste bunny > (")_(") to help him gain world domination. > > -- > 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. > > -- 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.
