I fixed the triple equal sign, and added a "break;" in line 8 of this code. (line 112 if placed at 105 as mentioned.)
It worked for me.PHP Code:$table_cost = split("[:,]", MODULE_SHIPPING_TABLE_COST);
$size = sizeof($table_cost);
for($i=0, $n=$size; $i<$n; $i+=2) {
if($order_total <= $table_cost[$i]) {
$pos = strpos($table_cost[$i+1], '%');
if($pos == false) {
$shipping = $table_cost[$i+1];
break;
}
else {
$shipping_cost_temp = split("%", $table_cost[$i+1]);
$shipping = $order_total * $shipping_cost_temp[0] / 100;
break;
}
}
}
Thanks!![]()



