Index: branches/5.2.x/units/shipping_quote_engines/custom_shipping_quote_engine.php =================================================================== diff -u -N -r13845 -r14099 --- branches/5.2.x/units/shipping_quote_engines/custom_shipping_quote_engine.php (.../custom_shipping_quote_engine.php) (revision 13845) +++ branches/5.2.x/units/shipping_quote_engines/custom_shipping_quote_engine.php (.../custom_shipping_quote_engine.php) (revision 14099) @@ -1,6 +1,6 @@ Application->GetADODBConnection(); $packages = $params['packages']; $default_pack = array_shift($packages); $query = $this->QueryShippingCost($params['dest_country'], $params['dest_state'], $params['dest_postal'], $default_pack['weight'], $params['items'], $params['amount'], $params['shipping_type'], $params['promo_params']); - $shipping_types = $db->Query($query, 'ShippingId'); + $shipping_types = $this->Conn->Query($query, 'ShippingId'); if (!$this->Application->isAdminUser) { $user_groups = explode(',', $this->Application->RecallVar('UserGroups')); @@ -40,8 +39,6 @@ function QueryShippingCost($user_country, $user_state, $user_zip, $weight, $items, $amount, $shipping_type=null, $promo_params) { - $db =& $this->Application->GetADODBConnection(); - $cs_helper =& $this->Application->recallObject('CountryStatesHelper'); /* @var $cs_helper kCountryStatesHelper */ @@ -128,7 +125,7 @@ (sz.Type = 3 AND (szd.StdDestId = '.$user_country_id.') '.# user country id 'AND - (szd.DestValue = '.$db->qstr($user_zip).') '.# user zip code + (szd.DestValue = '.$this->Conn->qstr($user_zip).') '.# user zip code ') ) AND