Magento: Send confirmation email on new customer registration

Magento has the feature to verify the authenticity of newly registered customers before activating their account. When a user registers to your Magento shop, then he/she will get a confirmation email with a confirmation link. The customer’s account will be activated only after he/she clicks that confirmation link. By default this feature is not activated … Read more

Magento: You cannot define a correlation name ‘attribute_idx’ more than once [SOLVED]

Problem: I am having the following error when I browse Layered Navigation on Magento. You cannot define a correlation name ‘attribute_idx’ more than once Cause: This is because a block has been duplicated. You have to check your layout xml files to check if you have included same block at same place twice. Solution: To … Read more

[SOLVED] Warning: Your Magento folder does not have sufficient write permissions

You might get this error when you go to Magento Connect Manager (System -> Magento Connect -> Magento Connect Manager) of your Magento installation. This means that Magento Connect is unable to write files to your server. Warning: Your Magento folder does not have sufficient write permissions. The solution to this problem is to set … Read more

Magento: Unable to select custom attribute on product collection

Problem: I had added a new product attribute. Suppose the attribute code is ‘test’. I have been trying to fetch/select that newly added product attribute. Here is my Magento collection code:- $collection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('test') ->addAttributeToFilter('url_key', 'SOME_URL_KEY') ->getFirstItem(); I don’t see the attribute ‘test’ when I print the collection data. echo "<pre>"; print_r($collection->getData()); echo … Read more

Vi commands: Simple and Quick tutorial [Linux]

VI is a display oriented interactive text editor originally created for the Unix operating system. It is available by default on all UNIX systems. It is supplied with all Linux distributions. Here is a simple and quick VI command tutorial. Note: VI commands are CASE SENSITIVE. Modes There are two modes in vi: command mode … Read more

Magento: Add/Edit Date Field in Admin Form

Let’s suppose that you have a custom Magento module named ‘YourModule’. You have a custom database table for the module. There is a date field in the table. Now, your requirement is that your module should be able to display and edit the date field from admin section. This article shows how you can display … Read more

Magento: Add new tab to Customer Account Section

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:- Let’s suppose, your module’s name is Yourmodule. 1) Add these xml code in app/design/frontend/your_package/your_theme/layout/yourmodule.xml Note:- In default Magento settings, your_package = default & … Read more