I am creating functionality to get Shipping methods enabled for selected store.

Currently I am using below code to get Shipping details :

$methods = Mage::getSingleton('shipping/config')->getActiveCarriers();
$shipMethods = array();

foreach ($methods as $shippigCode=>$shippingModel) 

    $shippingTitle = Mage::getStoreConfig('carriers/'.$shippigCode.'/title');
    $shippingPrice = Mage::getStoreConfig('carriers/'.$shippigCode.'/price');
    $shippingLabel = Mage::getStoreConfig('carriers/'.$shippigCode.'/label');
    $shipMethods[]=array('Shipping Type' => $shippigCode, 'title'=> $shippingTitle, 'price'=> $shippingPrice);


I only get config details of the default store.

My question is : How do i get shipping methods of selected store?


The declaration of the function is: public function getActiveCarriers($store = null) so you can pass the store as a parameter. You can get the current store with Mage::app()->getStore().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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