[ic] Shipping from multiple origins/zones

Mike Heins mike at perusion.com
Thu Jul 20 09:53:03 EDT 2006


Quoting Bruno Cantieni (bruno at digi-land.com):
> 
> This fails miserably with e.g.:
> Shipping '018' lookup called, no zone defined
> Shipping '079' lookup called, no zone defined
> 
> Looking at the code in Ship.pm which is the cause of this:
> 	unless (ref $Vend::Cfg->{Shipping_zone}{$code}) {
> 		logError("Shipping '%s' lookup called, no zone defined",
> $code);
> 		return undef;
> 	}
> I can see why it wouldn't get past this, the question is how can I get this
> to actually work?
> Am I just barking up the wrong tree here (i.e. there's a better way and I
> don't see it).
> Any suggestions appreciated.

You need to either 1) read the zone if it doesn't exist, or 2) write a
shipping.asc that incorporates all zones. The routine to read the zone
is not broken out in Vend::Ship -- you would need to read the source and
duplicate it (perhaps as a UserTag or GlobalSub). A competent IC
consultant could easily do that if required.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

I used to think the whole world stank. Then I found out I had poop
on my mustache. -- Anonymous


More information about the interchange-users mailing list