Magento »

[25 Mar 2013 | One Comment]

Suppose, you have a custom Magento module and you wanted to add a custom tab to “Customer My Account” section, i.e. the frontend part displayed after customer login.
Here is the solution:-

Google, Magento »

[18 Mar 2013 | No Comment]

Problem:- I recently upgraded a Magento shop from version 1.6 to 1.7 and suddenly the Google Analytics stopped tracking data.
Solution:- You need to add ‘template’ attribute to googleanlytics block in app/design/frontend/your_package/your_theme/layout/googleanalytics.xml

Magento »

[11 Mar 2013 | No Comment]

This article contains code snippet to get customer attributes in Magento.
Get Customer Collection

Magento »

[4 Mar 2013 | 3 Comments]

This article contains code snippet to get custom options value of all products in any Magento order.
Suppose, there is a product with a custom option dropdown list. You chose one of the option from the dropdown list and purchased that product. The code below fetches product’s custom option value selected in any particular order.
Here is the code:-

Ubuntu »

[25 Feb 2013 | No Comment]

Shortcut Keys are always very useful for any work. There are many built-in shortcut keys in Ubuntu Linux. Moreover, you can add your own shortcut keys according to your needs and desire.
Here is the step-by-step guide to create custom shortcut keys on Ubuntu. I am using the Unity Desktop in Ubuntu. Ubuntu version 12.10. It should work the same with the lower versions of Ubuntu.

Linux, Ubuntu »

[18 Feb 2013 | No Comment]

CHM (Microsoft Compiled HTML Help) is a Microsoft proprietary online help format, that consists of a collection of HTML pages and an index.
CHM files are not recognized by Linux and they cannot be open using any default application.

Linux, Ubuntu »

[11 Feb 2013 | One Comment]

CHM (Microsoft Compiled HTML Help) is a Microsoft proprietary online help format, that consists of a collection of HTML pages and an index.
CHM files are not recognized by Linux and they cannot be open using any default application.

Magento »

[28 Jan 2013 | 2 Comments]

I was working with a custom Magento module. I had to display TinyMCE editor in an admin form field.
I was getting this error when I try to add/edit data from the custom module:-
Warning: Invalid argument supplied for foreach() in lib\Varien\Data\Form\Element\Editor.php on line 225

Ubuntu »

[21 Jan 2013 | No Comment]

Here are some ubuntu linux commands to add and remove repository/software sources and applications.
Add application
sudo apt-get install {package-name}