Hi
Nice plugin, thanks for sharing, I want to modify it so that instead of having cost per weight, the cost relates to cart price, so if the price is between $1 - $10 it is $5 plus 20%, $11-$20 it is $5 plus 15% etc.
I am guessing the code to modify is somewhere here
=============
function getCosts(VirtueMartCart $cart, $method, $cart_prices) {
$orderPrice = $this->
getOrderPrice($cart, $method
->

); $nbproducts = $this->_nbproductsCond($cart, $method);
if ($orderWeight >= $method->weight_min1 && $orderWeight <=$method->weight_max1){
return $orderWeight * $method->rate1;
}
elseif ($orderWeight >= $method->weight_min2 && $orderWeight <=$method->weight_max2){
return $orderWeight * $method->rate2;
}
elseif ($orderWeight >= $method->weight_min3 && $orderWeight <=$method->weight_max3){
return $orderWeight * $method->rate3;
}
elseif ($orderWeight >= $method->weight_min4 && $orderWeight <=$method->weight_max4){
return $orderWeight * $method->rate4;
}
elseif ($orderWeight >= $method->weight_min5 && $orderWeight <=$method->weight_max5){
return $orderWeight * $method->rate5;
}
elseif ($orderWeight >= $method->weight_min6 && $orderWeight <=$method->weight_max6){
return $method->rate6 * $orderWeight;
}
else{
return $method->elsecost;
}
}
===============
Any advice would be appreciated
Thanks