Magento: Track Visitor’s (User / Customer) Information

Here, I will show you how to track visitor’s data information in Magento. By visitor’s information, I mean information like remote address, http host, user agent (browser), referer url, first visit date time, last visit date time, etc. The following code fetches the vistor data:- [source language=”php”] $visitorData = Mage::getSingleton(‘core/session’)->getVisitorData(); // printing visitor information data … Read more

Magento: Helper Data not found error

I created a module, let’s say, ‘MyModule’. When I go to the Admin -> System -> Configuration section of this module, I get this weird error. Fatal error: Class ‘Mage_MyModule_Helper_Data’ not found – My Module is enabled. – I have helper class in ‘Helper’ folder of my module. – I have deleted/refreshed all cache and … Read more

Magento: Fatal error: Call to a member function setSaveParametersInSession() on a non-object

Scenario I was creating a module. I already had one Grid displayed in admin. The Grid was being displayed by a Block class, for example: MyNamespace_MyModule_Block_Adminhtml_MyModule Now, I had to display another Grid using a new Block class. Let’s say, I created a new Block class: MyNamespace_MyModule_Block_Adminhtml_MyNewGrid I just copied code from MyNamespace_MyModule_Block_Adminhtml_MyModule and copied … Read more

Gmail Trick: Use multiple email addresses for your single Gmail account

You can use multiple email addresses with your single Gmail account. Trick #1 Suppose, you have your Gmail account as: firstname.lastname@gmail.com With Gmail, you can also use it as: firstnamelastname@gmail.com or first.name.lastname@gmail.com or first.name.last.name@gmail.com Gmail doesn’t recognize dots as characters within usernames. Email sent to all of these email addresses will go to your original … Read more

Backup Google Chrome Profile Bookmarks History Extensions: Best and Easy way

Backing up browser means getting backup of all the browsing history, bookmarks, extensions installed, etc. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. I love Google Chrome. Question:- I use Google Chrome in office. I browse numerous websites, I bookmark many of … Read more

Magento: How to get admin user id, name, username, email, etc?

Here is a quick code to get the admin user’s data (id, name, username, email, password, etc). By admin user, I mean the users that login through the admin panel and those who have access to the admin panel of Magento. The users can be administrator, or with some specific roles. $userArray = Mage::getSingleton('admin/session')->getData(); // … Read more