Magento

Get Visitor’s Information

The following code fetches the vistor data:-   $visitorData = Mage::getSingleton(‘core/session’)->getVisitorData(); // printing visitor information data echo “<pre>”; print_r($visitorData); echo..

More
Magento

Magento Display Message

Sucess Message: Mage::getSingleton(‘adminhtml/session’)->addSuccess(Mage::helper(‘dwsm’)->__(‘No record(s) to fetched’)); Error Message: Mage::getSingleton(‘adminhtml/session’)->addError(Mage::helper(‘dwsm’)->__(‘Unable to fetch Source Version(s)’));

More