Check your code for:
/includes/classes/shipping.php
$cheapest = false;
$size = sizeof($rates);
for ($i=0; $i<$size; $i++) {
[B]echo 'Shipping cheapest: ' . $rates[$i]['module'] . ' cost: ' . $cheapest['cost'] . '<br>';
[/B] 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' and $rates[$i]['module'] != 'usps') {
$cheapest = $rates[$i];
}
} else {
if ($rates[$i]['module'] != 'storepickup' and $rates[$i]['module'] != 'usps') {
$cheapest = $rates[$i];
}
}
}
$this->notify('NOTIFY_SHIPPING_MODULE_CALCULATE_CHEAPEST', $cheapest);
return $cheapest;
and make sure it matches and add the line in RED ...
Next, logout, then login and try the checkout ...
What do you see from the echo? And, now does the cheapest stop showing as USPS?
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!