<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I am trying to add an additions shipping method to my site and seem
to be having a problem with the logic. Here is the code that is
giving me an error on the truckbig method:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">truckbigger: Oversize Truck Shipping
criteria <<EOC
[calcn]
foreach my $item (@$Items) {
if ($item->{width} >= 160) {
# We have to use this shipping method
return 1;
}
}
return 0;
[/calcn]
EOC
min 1
max 1
cost 170.00
truckbig: Truck Shipping
criteria <<EOC
[calcn]
foreach my $item (@$Items) {
if (($item->{width} >= 108 and ($item->{width} <=160)) {
# We have to use truckbigger shipping method
return 1;
}
}
return 0;
[/calcn]
EOC
min 1
max 1
cost 85.00
Truckbigger works as is. But when I want to charge less for rods between 108 and 160, I get an error,
</pre>
<table width="100%" border="0" cellpadding="4" cellspacing="0"
align="center">
<tbody>
<tr>
<td class="contentbar1"><br>
</td>
<td colspan="3" class="contentbar1"> <b>Note:</b> No match
found for mode 'ground', quantity '', returning 0. </td>
</tr>
</tbody>
</table>
Shipping defaults to the shippin method just below truckbig method.
Need fresh eyes to help me figure out why this is not working.<br>
<br>
Kerry<br>
</body>
</html>