How to make a module in Magento Part 1

So here is our file and folder structure for module.


A)     app\etc\modules\Summer_Spring.xml (Create a file for Module Configuration file).
B)     \app\code\local\Summer (Create a namespace folder).C)     \app\code\local\Summer\Spring (Create a module folder).D)     \app\code\local\Summer\Spring\controllers (Create a controller folder).E)      \app\code\local\Summer\Spring\etc (Create a Configuration folder).F)      \app\code\local\Summer\Spring\etc\config.xml (Create a Configuration file).G)    \app\code\local\Summer\Spring\controllers\IndexController.php (Create a Controller file).

How to install Magento On wamp Server.

Please follow these instruction to install Magento on local Server,  

Step 1:- For Download magento go To             http://www.magentocommerce.com/download and download latest version.

Step 2:- Extract Magento folder and copy in your localhost folder.
Step 3:- Create database in phpnyadmin database name should be in lower case.
Before go further we have to make some changes So let’s do it now.

How to Setup multiple Store in Magento

Please Follow these steps to create  multiple Store  in Magento.
Step 1:- Login in admin panel Go to Catalog and click on manage categories.
  
Step 2:- Now click on Add Root Category button.
Step 3:- On general information page fill name for category For example:-
Name = arunstore,
Is Active = Yes
Page Title = Arun store
Include in Navigation Menu = Yes

Remove sidebar content block In Magento.

If you want to remove any Block from you home page, cart page or Product view page  it’s so simple just go to your layout folder find your xml file and add remove following method for exp see below.We are going to remove Pool Block from “Product view page” and home page. I am currently using “2-columns-right” template for my home page so follow these steps :-

Step 1 :- Go to your \app\design\frontend\<your theme package>\<your theme>\layout\poll.xml and now open “poll.xml” add following code between </layout> code….</layout>.
<!-- Remove poll block from product view page -->                 <catalog_product_view> <!--- You can find this in catlog.xml  ->                  <reference name="right">                 <action method="unsetChild"><name>right.poll</name></action>                </reference>                </catalog_product_view><!--remove poll block from page two columns right page-->                 <page_two_columns_right> <!--- You can find this in page.xml  ->                   <reference name="right">                 <action method="unsetChild"><name>right.poll</name></action>                </reference>                 </page_two_columns_right>

By using same method you can remove your block another method to disable your module block follow these steps .

Step 1 :- Go to Your admin  and then Go System and click on drop down menu Configuration  and find Advance from left side bottom click on it.
Step 2 :- Click on Disable Module Output find your module for example I am disabling poll module “Mage_Poll” uncheck the box now select disable from drop down and now click on save config button.
Now go to your website and refresh it you will see the change.

How to get important url in Magento

First of all we will present you how to get skin url, get media url, get base url, get store url to retrieve an URL path in STATIC BLOCK

1. How to Get skin url

ANSWER: {{skin url=’images/sampleimage.jpg’}}


2. How to Get media url

ANSWER: {{media url=’/sampleimage.jpg’}}