[ic] Adding a percentage to UPS lookups

Jason Timm interchange-users@lists.akopia.com
Thu Jul 26 02:19:01 2001


Hey...

I am trying to add 7% on to whatever comes back from a UPS lookup.  Reading
the archives, I see that in version 4.6.4 there may not be a way to do that
with internal UPS lookups.  That being the case, how do I use external
lookups?  I have tried through the UI but it seems to be buggy.  So, how
should I do it via the shipping.asc file directly?  Here is what it looks
like so far:

-----

upsb	UPS Two Day	weight	0	0	e Nothing to ship!		{'ui_ship_type' =>
"UPSI",'zone' => "450",'table' => "2ndDayAir",'ups' => "1",'adder' =>
"\@\@COST\@\@ * .07",'geo' => "zip",}
upsb	UPS Two Day	weight	0	150	u 2ndDayAir [value name=zip filter=digits
default=45056]		{'adder' => "\@\@COST\@\@ * .07",}
upsb	UPS Two Day	weight	150	999999	e @@TOTAL@@ lbs too heavy for UPS		{}

upsr	UPS Next Day	weight	0	0	e Nothing to ship!		{'ui_ship_type' =>
"UPSI",'zone' => "450",'table' => "NextDayAir",'ups' => "1",'adder' =>
"3",'geo' => "zip",}
upsr	UPS Next Day	weight	0	150	u NextDayAir [value name=zip filter=digits
default=45056]		{}
upsr	UPS Next Day	weight	150	999999	e @@TOTAL@@ lbs too heavy for UPS		{}

standard	Standard Shipping	[subtotal noformat=1]	0	0	e e		{'ui_ship_type' =>
"_subtotal",'ups' => "0",'at_least' => "4.50",}
standard	Standard Shipping	[subtotal noformat=1]	1	999999	f @@TOTAL@@ * .07
{}

(Trimmed for readability, heh...)

-----

The "\@\@COST\@\@ * .07" is retty much useless in this scenario.  How would
I change this to add the 7% to the UPS 2 Day and Next Day options?

This group has been great for pointing me in the right direction in the
past, hopefully someone has an idea about this issue as well.  Thanks!

Jason Timm
jason@itchoices.com