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 itemsthere 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 _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.