Can anyone help me how to fetch the all shipping methods available in system->config->shipping Methods programatically.
I have used the below code: $methods = Mage::getSingleton('shipping/config')->getActiveCarriers();
Get the result like below:
but iam unable to find what are methods names:
Result:
[freeshipping] => Mage_Shipping_Model_Carrier_Freeshipping Object
(
[_code:protected] => freeshipping
[_isFixed:protected] => 1
[_rates:protected] =>
[_numBoxes:protected] => 1
[_freeMethod:protected] => free_method
[_customizableContainerTypes:protected] => Array
(
)
[_debugReplacePrivateDataKeys:protected] => Array
(
)
[_data:protected] => Array
(
[id] => freeshipping
[store] =>
)
[_hasDataChanges:protected] => 1
[_origData:protected] =>
[_idFieldName:protected] =>
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)
[_syncFieldsMap:protected] => Array
(
)
)
[tablerate] => Mage_Shipping_Model_Carrier_Tablerate Object
(
[_code:protected] => tablerate
[_isFixed:protected] => 1
[_default_condition_name:protected] => package_weight
[_conditionNames:protected] => Array
(
[0] => package_weight
[1] => package_value
[2] => package_qty
)
[_rates:protected] =>
[_numBoxes:protected] => 1
[_freeMethod:protected] => free_method
[_customizableContainerTypes:protected] => Array
(
)
[_debugReplacePrivateDataKeys:protected] => Array
(
)
[_data:protected] => Array
(
[id] => tablerate
[store] =>
)
[_hasDataChanges:protected] => 1
[_origData:protected] =>
[_idFieldName:protected] =>
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)
[_syncFieldsMap:protected] => Array
(
)
)
Thanks