drupal 6 - How do you add Fedex SmartPost as a shipping option? -
i looking add fedex smartpost shipping option. idea need accomplish this? information have found on here https://drupal.org/node/793124, seems no 1 has solved issue. willing modify ubercart fedex module if needed.
so far have done:
- changed
rateservice_v10.wsdlrateservice_v14.wsdl added code
uc_fedex_rate_requestfunction:$request['requestedshipment']['smartpostdetail'] = addsmartpostdetail(); function addsmartpostdetail(){ $smartpostdetail = array( 'indicia' => 'parcel_select', 'ancillaryendorsement' => 'carrier_leave_if_no_response', 'specialservices' => 'usps_delivery_confirmation', 'hubid' => 5087, 'customermanifestid' => myid, ); return $smartpostdetail; }
in uc_fedex_quote function, have added debug statement right after:
$response = uc_fedex_rate_request($packages, $origin, $destination); drupal_set_message('<pre>'. print_r($response, true) .'</pre>'); in response not smartpost returned option.
this had (note: edited uc_fedex.module directly):
- you must smartpost approved account first
- get updated wsdl file https://www.fedex.com/us/developer/web-services/process.html?tab=tab1 , upload them server
- get hubid customer support (mine 5185)
- get customermanifestid customer support
- change rateservice_v14.wsdl in code (near $client = new soapclient...)
change version 14
$request['version'] = array( 'serviceid' => 'crs', 'major' => '14', 'intermediate' => '0', 'minor' => '0', );
add following code:
$request['requestedshipment']['smartpostdetail'] = addsmartpostdetail(); function addsmartpostdetail(){ $smartpostdetail = array( 'indicia' => 'parcel_select', 'ancillaryendorsement' => 'carrier_leave_if_no_response', 'specialservices' => 'usps_delivery_confirmation', 'hubid' => yourhubid, 'customermanifestid' => yourmanifestid, ); return $smartpostdetail; }
add following _uc_fedex_ground_services(): 'smart_post' => t('fedex smart post'),
- go admin/store/settings/quotes/methods/fedex , check 'fedex smart post'
Comments
Post a Comment