The default is the lowest price ...
Store Pickup would only be the default if that is cached as Store Pickup is coded to not default ...
To customize this you would need to change the shipping.php class and customize the code for:
PHP Code:
$cheapest = false;
$size = sizeof($rates);
for ($i=0; $i<$size; $i++) {
if (is_array($cheapest)) {
// never quote storepickup as lowest - needs to be configured in shipping module
if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup') {
$cheapest = $rates[$i];
}
} else {
if ($rates[$i]['module'] != 'storepickup') {
$cheapest = $rates[$i];
}
}
}
return $cheapest;
Bookmarks