Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] MV4.04 - Patch for ignored adder value for UPS in shipping.asc



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Randy Moore (ramoore@axion-it.net):
> 
> While playing with shipping calculations today, I noticed that if I used 
> the line-based style of defining shipping parameters, the "adder" value for 
> UPS calculations would be ignored.  If I used the freeform method, the 
> adder values worked properly.
> 
> I've included a patch which seems to fix the problem for me.
> 
> --- Interpolate.orig.pm Sat Jun 17 17:54:40 2000
> +++ Interpolate.pm      Sat Jun 17 17:59:28 2000
> @@ -4699,7 +4699,9 @@
>                          if(! $type) {
>                                  $what = interpolate_html($what);
>                                  ($type, $geo, $adder, $mod, $sub) = split 
> /\s+/, $what, 5;
> -                               $o->{adder}    = $adder  if $mod =~ /round/;
> +#  This seems suspicious
> +#                              $o->{adder}    = $adder  if $mod =~ /round/;
> +                               $o->{adder}    = $adder  if $adder;
>                                  $o->{round}    = 1  if $mod =~ /round/;
>                                  $o->{at_least} = $1 if $mod =~ /min([\d.]+)/;

Absolutely correct. Thanks for the fix!

On your other question WRT chained shipping, I think your modes have
to be redirected with >> and not >.

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Few blame themselves until they have exhausted all other possibilities.
 -- anonymous
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: