I hacked a horrid little answer to this.
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]) {
if ($table_cost[$i+1] ==10000){
$shipping = "die";
} else{
$shipping = $table_cost[$i+1];
}
break;
}
}
If $this->quotes['methods'][0]['cost'] set to 0 still gives value of $0.00 shipping. Why?
So I check to see shipping is set to a value, and return nothing if its set to "die" or 0. If I did more object oriented coding I might offer better solution.. So make the quote function return nothing.
line ~ 114
Code:
if ($shipping != "die") {
return $this->quotes;
}It works ok but not great - still would take suggestions.
Bookmarks