<?php require_once('app/Mage.php'); //Path to Magento umask(0); Mage::app(); $methods = Mage::getSingleton('shipping/config')->getActiveCarriers(); $shipMethods = array(); foreach ($methods as $shippigCode=>$shippingModel) { $shippingTitle = Mage::getStoreConfig('carriers/'.$shippigCode.'/title'); $shipMethods[$shippigCode] = $shippingTitle; } echo "<pre>"; print_r($shipMethods); ?>
Solved! Go to Solution.
@Vimal Kumar May i know what is the difference
$website_id = Mage::app()->getWebsite()->getId(); if($website_id=="1") { //some code }