Important functions list in Magento
General Related functions
$this->getRequest()->getServer(‘HTTP_REFERER’);
Product related functions
$product->getName()
$product->getSku()
Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty()
$product->getResource()->getAttribute(‘color’)->getFrontend()->getValue($product)
$product->isSaleable()
$product->isisAvailable()
Mage::getModel(‘catalogrule/rule’)->calcProductPriceRule($product,$product->getPrice())
$product->getTierPrice(1)
Newsletter related functions
$subscriber = Mage::getModel(‘newsletter/subscriber’);
$subscriber->subscribe($user_mail);
Cache Related functions
$tags = array(Mage_Catalog_Model_Category::CACHE_TAG); //Category block tag
Mage::app()->cleanCache($tags)
Product images Related functions
$_product->getMediaGalleryImages()->getItemByColumnValue(‘label’, ‘LABEL_NAME’)->getUrl()
Customer related functions
$this->helper(‘customer’)->isLoggedIn()