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

How to Show Static Block in theme Magento

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

Create an Static Block from your CMS admin tab and show it in your theme.

In my case I wanted to call a Static Block from my theme to show up in the sidebar.

I edited my theme file called 2columns-left.phtml and then added the following code.

Please notice you need to replace the YourBlockId with your own Static Block Id.

<?php echo $this->getLayout()->createBlock(‘cms/block’)
->setBlockId(‘YourBlockId’)->toHtml() ?>

Add XX to Cart for Free Shipping – Magento

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

Create Apple’s style of Add XX to your order and get Free Shipping

Page 5 of 109« First...«34567»102030...Last »