I want to change the order status based on fedex or aramex shipping method.

Suppose fedex delivered product i want just automatically update order status in my system.

i have used fedex shipping as well as shipment api. but its not return satisfy response.

here is my code : but i cant get the final status from fedex.

$response = Mage::getModel('usa/shipping_carrier_fedex')->getTracking($data[$i]['track_number']);
                $trackings = $response->getTrackings()->getData('progressdetails');
                echo "<pre>";

1 Answer 1

$response = Mage::getModel('usa/shipping_carrier_fedex')->getTracking('track_number');
$trackData = $response->getAllTrackings();
$progressData = $trackData[0]->getData('progressdetail');
$deliveredStatus = $progressData[0]['activity'];

its working for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.