If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Shipping Modules / We are unable to obtain a rate quote for UPS shipping.

We are unable to obtain a rate quote for UPS shipping.

Started by rcwebdev on 29 Apr 2013, 5:13 PM · Views: 941

Results 1 to 1 of 1
29 Apr 2013, 5:13 PM
#1
rcwebdev avatar

rcwebdev

New Zenner

Join Date:
Nov 2012
Posts:
27
Plugin Contributions:
0

Post #1 by rcwebdev

Sometimes the rates aren't displayed and the user sees the message We are unable to obtain a rate quote for UPS shipping.

Could this error be caused by not connecting to the UPS server? If I reload the page or click Continue the page rates are displayed. It's a intermittent problem that doesn't happen all the time.

It also records this error in the logs:

*PHP Warning: Invalid argument supplied for foreach() in /includes/modules/pages/checkout_shipping/header_php.php on line 205 for this code section line 205 is in bold

// check that the currently selected shipping method is still valid (in case a zone restriction has disabled it, etc)
if (isset($_SESSION['shipping']) && $_SESSION['shipping'] != FALSE && $SESSION['shipping'] != '') {
$checklist = array();
foreach ($quotes as $key=>$val) {
** foreach($val['methods'] as $key2=>$method) {**
$checklist[] = $val['id'] . '
' . $method['id'];
}
}
$checkval = (is_array($_SESSION['shipping']) ? $_SESSION['shipping']['id'] : $_SESSION['shipping']);
if (!in_array($checkval, $checklist)) {
$messageStack->add('checkout_shipping', ERROR_PLEASE_RESELECT_SHIPPING_METHOD, 'error');
}
}*

Thank you for reading this post. Your help would be greatly appreciated. and your help.