Can I access self.contact.shipping_address.country?

Also, how do I configure the objects that are passed to the Shipper
class? I see in shipping.modules.tiered.models.Shipper it get a
Carrier object in it's __init__. Is there a tutorial or doc somewhere
that explains the shipping init process for more complex situations?

I've been looking through the code base for hours now trying to figure
this out 8| - I think it's only confusing me more when I stumble into
the magic parts... I'm not sure where I need to calculate the
available Tarifs anymore?!? And from which objects and how to pass
them in / access them... sign...

Thanks for your current and future help, and the excellent
presentation. I've watched the video and read the presentation.
Tomorrow it'll probably be clearer to me, after sleeping on it.

Sam



On Oct 18, 5:37 pm, "Chris Moffitt" <[EMAIL PROTECTED]> wrote:
> On Sat, Oct 18, 2008 at 9:05 AM, nostradamnit <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > Hi,
>
> > I'm trying to develop a Zone-based shipping module. It'll work like
> > this:
> > 4 models - Zone, Shipper, Tarif and Country(l10n_country)
> > A Zone is one or more Countries, Shipper is just a shipper (UPS,
> > LaPoste, etc)
> > Tarifs have a min_weight, a max_weight, a Zone and a Shipper.
>
> > Per order, the shipping methods available are calculated by cart
> > weight and destination country.
>
> > Here's the problem I have. It doesn't appear that the BaseShipper
> > module has a reference to the order.ship_country value. It only has
> > cart and contact...
>
> Take a look at the djangocon presentation I posted and described a custom
> shipping module. You should be able to access it like this:
>
> self.contact.billing_address.country
>
> Here's  the link to the 
> presentation.http://www.satchmoproject.com/docs/satchmo-djangocon.pdf
>
> -Chris
--~--~---------~--~----~------------~-------~--~----~
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