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

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

Magento: Google Analytics not working after Magento upgrade to version 1.7

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 Note:- If you are using the default Magento design then your_package = default or base your_theme = default Here is the edited googleanalytics.xml … Read more