The following code fetches the vistor data:- $visitorData = Mage::getSingleton(‘core/session’)->getVisitorData(); // printing visitor information data echo “<pre>”; print_r($visitorData); echo..
Sometimes, you’ve got a situation where you want to have a globally available static function. Most often this occurs (for..
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)’));
IN TEMPLATE FILES $this->getRequest() can be used in template (phtml) files. Here is the code: /** * get Controller name */..
If you want to get the source url of an image, javascript or file, call one of this functions adding your own path at the..
Sometimes you need to give ability for limiting access to a particular Magento Admin page and sometimes your customization goes..
Here, I will show you how you can get list of all modules in your Magento installation. It’s a simple..
Here’s a bit of code I used while developing a custom module for a client’s shop. The module allows a..
When running an online store, there is a constant need to send transactional email messages. As a store owner you..
Custom Variables Custom Variables is one of the features added in Magento v1.4 which receives little attention comparing to Secure..