Wrong Quote from Table Rate Shipping Module

I have noticed that there are instances where the table rate shipping module gives the wrong shipping quote. This situation applies to the standard table rate and the modified table rate for the Mutli-Vendor Shipping. It also applies to both the price and the weight table methods. What I have done is to modify the code in the qoute function as shown here, this example is for a Mutli-Vendor Shipping store.
$table103_cost = split("[:,]" , @constant('MODULE_SHIPPING_TABLE103_COST_' . $vendors_id));
$size = sizeof($table103_cost);
for ($i=0, $n=$size; $i<$n; $i+=2)
{
if($i==0)if($order_total <= $table103_cost[$i])$shipping = $table103_cost[$i+1];
if($i>0)if($order_total > $table103_cost[$i-2] && $order_total <= $table103_cost[$i])$shipping = $table103_cost[$i+1];
if($i==$n-2)if($order_total > $table103_cost[$i])$shipping = $table103_cost[$i+1];
}

$table103_cost and ‘MODULE_SHIPPING_TABLE103_COST_’ are variable names so before you do anything backup your file and change them to the corresponding name in your file.

If you are concern about make these changes youselft, contact me.

Bookmark and Share

Leave a Reply