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
Javascript-jQuery

Validate file Extension

Javascript Function To Validate File Extenxion extArray = new Array(“.ai”, “.pdf”, “.eps”, “.jpg”, “.gif”, “.png”); function LimitAttach(file) { allowSubmit =..

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