Flatrate shipping issue

Posts: 29
Joined: 11/05/2007

I have configured the flatrate and workflow-ng settings for shipping to use an amount of $30 to ship 6 items to zone 2 by ground and to use an amount of $51.92 to ship 6 items to zone 2 by air using shipping zone and number of products as conditions. Instead of using these values the shipping quote calculation is multiplying the flatrate by the number of products, i.e. 6 * $30 for ground and 6 * 51.92 for air. Is this the desired functionality? Would it make sense to be able to choose an operator in the flatrate setup to allow for both cases? Is it correct and what are the implications of changing

if (is_null($product->flatrate)) {
$rate += $method->product_rate * $product->qty;
}
else {
//$node = node_load($product->nid);
$rate += $product->flatrate[$mid] * $product->qty;

to

if (is_null($product->flatrate)) {
$rate += $method->product_rate;
}
else {
//$node = node_load($product->nid);
$rate += $product->flatrate[$mid];

Thanks for the help,

Patrick

Shipping By: mccraic (6 replies) Wed, 04/16/2008 - 17:58