Customize ‘New Order’ Email template in Magento

Share
Posted on February 22nd, 2012 | Posted by admin

Customizing the ‘New Order Confirmation Email‘ template in Magento may be a havoc for the first time if you do not know the write way. But it is as easy as anything. Recently I needed to customize the item information in the ‘New Order Confirmation Email’. I googled a number of links but found nothing useful. Then I decided to find my own way, and after 2 hours of hard work I found a simple way. Here are the steps to customize the email template:

1. In the Magento Admin panel go to ‘System > Transactional Emails’ and click on ‘Add New Template’.
2. In the ‘Load default template’ container select ‘New Order’ in the ‘Template’ dropdown. Alse select our desired ‘Locale’.
3. Click on ‘Load Template’. It will load the Default email template to edit for you. Now you can edit the ‘Template Subject’ and ‘Template Content’ to suit your needs. See the following screenshot:

Override Controllers in Magento

Share
Posted on February 22nd, 2012 | Posted by admin

While working in Magento you may sometimes run into situations where you would like to override the functionality of the Magento core controllers. But you cannot edit the core controllers of Magento as it will hinder you from upgrading your Magento version. So we have to find a simple solution for that. Don’t worry, today we will see how to override Magento core controllers.
For this, you have to create a custom module. If you do not know how to create a custom module, then read this post.
Now suppose we want to override the checkout/cart controller. To do this, we will have to edit just two files in our custom module.
Suppose our custom module is present in the namespace ‘Company’ and our module is named as ‘Web’.

How to hide ‘Add Item’ button in Magento Backend Grid

Share
Posted on February 19th, 2012 | Posted by admin

In some cases you might need to hide the ‘Add Item’ button on the grid page in backend module for admin. This may eat your head if you have no idea of what is going on. But this is as simple as nothing. Follow the below given steps and you are done in less than a minute.

Open app\code\local\<namespace>\<module>\Block\Adminhtml\<module>.php and perform following changes:

<?php
class <Namespace>_<Module>_Block_Adminhtml_<Module> extends Mage_Adminhtml_Block_Widget_Grid_Container

Creating Custom Configuration Options in Magento Admin

Share
Posted on February 19th, 2012 | Posted by admin

As a Magento developer you frequently encounter the Configuration page of Magento admin backend. But have you ever noticed how these configuration pages are created and where are those configuration options saved? If not don’t worry, today I will tell you how to create an admin configuration page for you custom module. You might wonder that their is no ‘.phtml’ involved in this configuration page. Shocked! Its ok, we have to play only with the xmls to create this functionality. So now lets start the development.

How to Allow more file types Magento

Share
Posted on February 17th, 2012 | Posted by admin

Allow more file types to Magento.

I wanted to add a PDF file to the product description but Magento just allow image file types.

Let’s get started.

Core Files

Look for the file: /app/code/Core/Mage/Cms/etc/config.xml

You should create the same folder structure inside /app/local/…

That’s the way to make the change upgrade proof. But I did and didn’t work

Page 1 of 10512345»102030...Last »