[ic] handling charges

Peter peter at pajamian.dhs.org
Mon Feb 11 20:59:38 EST 2008


On 02/11/2008 05:51 PM, David Christensen wrote:
> Matthew,
> 
>> [calcn]
>>     $Values->{mv_handling} = 1;
>>
>>     my $handling = scalar @$Items * 5;
>>     $handling = 20 if $handling < 20;
>>
>>     $Tag->assign({ handling => $handling });
>>
>>     return;
>> [/calcn]
> 
>> Actually Peter, this gives me only $20 for handling no matter how many 
>> items
>> there are in the cart.  It should be $5 per item up to $20.
> 
> It looks like there's a minor typo in the code; it should be:
> 
>>     $handling = 20 if $handling > 20;

No typo there, it should be <.

I'm not sure where the problem is in that code, I obviously didn't test 
it before posting it but I can't see the problem, maybe someone else 
will spot it.

Peter



More information about the interchange-users mailing list