[ic] shipping.asc IC 5.4 [solved]

Steve Graham icdev at mrlock.com
Thu Feb 9 08:41:28 EST 2006


>>zip                     0[value country]
>>
>>Never looked any deeper than that.
>>
>>
>>--
>
>Does the zip item allow for interpolation?
>I can't seem to get [value country] to evaluate.

I did a pretty thorough debug of the Ship.pm module and found where 
the 0 was getting added to the front of the zone data.

It was in the make_three subroutine.

The reason was pretty simple after studying the code.

str_length needs to be in the main definition of the shipping mode 
like follows:

USPSGBX:USPS Global Express
         crit                    weight
         at_least                5
         adder                   3
         ups                             1
         zone                    GlobalExpZones
         PriceDivide             1
         table                   GlobalExp
         aggregate               40
         ui_ship_type    UPSI
         str_length      2
         min                             0
         max                             0
         cost                    e No shipping needed!

         min                             0
         max                             70
         geo                    zip
         zip                    country
         cost                    u

         min                             70
         max                             9999999
         cost                    e Too heavy for Global Express


All works now as it should.

Steve 



More information about the interchange-users mailing list