[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Re: Shipping Questions - Multiple Boxes Per Item - How to?
> -----Original Message-----
> From: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
> jeff@performancelifts.com
> Sent: Saturday, March 16, 2002 3:40 AM
> To: interchange-users@interchange.redhat.com
> Subject: [ic] Re: Shipping Questions - Multiple Boxes Per Item - How to?
>
>
> Here is the rest of the other post. Hit the wrong key... :)
>
> > First of all I'm running a modified Demo store. I'm just a young person
> that
> > doesn't yet have the experience necessary to build one from
> scratch, yet.
> So
> > here is my next question. I tried using the code provided by
> Mike from an
> > earlier post. It is basically code that calculates shipping on
> a per item
> > basis and then adds that total amount up. It returned an amount over
> > 150,000,000 for shipping. So I ditched that idea and made some
> > modifications. Now I am stuck with Interchange returning an error when
> > attempting to ship totals over 150lbs. There error is as follows:
>
> Note: GNDRES: The maximum per package weight for that service from the
> selected country is 150 pounds.
>
> I have looked all through Interchange and haven't been able to locate this
> limitation. How can I go about removing this 150lb limit? If you tell me
> which file I'm sure I can fix it. I tried looking through the docs but I
> didn't see any 150lb limits or weight requirements.
>
> If anyone has implemented the multiple item shipping and made it work with
> UPS shipping lookups I would appreciate any advice you might be able to
> spare.
This is a setup I used for a book seller. 40 pounds of books go into each
box.
80 lbs of books = 2 40 lbs UPS shipments.
100 lbs of books = 2 40 lbs UPS shipments + a 20 lb UPS shipment.
catalog.cfg:
UserTag ship_cost Order weight mode zip
UserTag ship_cost Routine <<EOR
sub {
my($weight,$mode,$zip) = @_;
return unless $weight;
$mode = $Variable->{SHIP_DEFAULT_MODE} unless $mode;
$zip = $Variable->{SHIP_DEFAULT_ZIP} unless $zip;
my $total = 0;
$total = int($weight/40) * $Tag->ups_query( {
mode => $mode,
zip => $zip,
weight => 40
} );
$total += $Tag->ups_query( {
mode => $mode,
zip => $zip,
weight => $weight % 40
} );
return $total;
}
EOR
shipping.asc:
1DA: UPS Next Day Air
criteria weight
min 0
max 0
at_least 5
adder 3
cost e Nothing to ship
min 0
max 40
cost f [ups-query zip="[either][value
zip][or]_SHIP_DEFAULT_ZIP__[/either]" mode="1DA"
weight=@@TOTAL@@]
min 40
max 999999
cost f [ship_cost mode=1DA zip='[value zip]'
weight=@@TOTAL@@]
2DA: UPS 2nd Day Air
criteria weight
adder 3
at_least 5
min 0
max 0
cost e Nothing to ship
min 0
max 40
cost f [ups-query zip="[either][value
zip][or]_SHIP_DEFAULT_ZIP__[/either]" mode="2DA"
weight=@@TOTAL@@]
min 40
max 999999
cost f [ship_cost mode=2DA zip='[value zip]'
weight=@@TOTAL@@]
GNDCOM: UPS Ground
criteria weight
min 0
max 0
at_least 5
adder 3
cost e Nothing to ship
min 0
max 40
cost f [ups-query zip="[either][value
zip][or]_SHIP_DEFAULT_ZIP__[/either]" mode="GNDC
OM" weight=@@TOTAL@@]
min 40
max 999999
cost f [ship_cost mode=GNDCOM zip='[value zip]'
weight=@@TOTAL@@]
FREE Free Shipping! 1 1 1 0.00