Tuesday, March 27, 2012

Magento Mass deletion of Coupon and Mass activation of Date

For deleting or changing the "from" and "to" date of the coupon each time we have to go into each coupon and then we have to delete it or change the date Below functionality will help to do the mass deletion of the coupon and changes t he date also For that we have to copy the app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php into app/code/local/Mage/Adminhtml/Block/Promo/Quote/grid.php and following functions

Magento show subcateogry instead of Products in grid/list Page

Magneto Have default functionality of showing the Products in list view or Grid view
But some time we require to show the Sub catgeory in list page and if that sub catrgoy have another subcategory

For showing that we need to work on following

Saturday, March 24, 2012

Magento Config.xml

However all the files are merged together during the parsing process.It will help to understand the XML structure. It is the reason that the module name is repeated as an XML element name (represented below as <(modulename)>) several times through every file - this is necessary to segregate configuration for each module. Without these elements, the configuration in these sections would be overwritten by the configuration files in other modules.

so let us understand the XMl and its ELements ans tructure

Every Config.xml has following elements
modules global admin adminhtml install frontend default stores websites

The XML sub-structure of each element is described separately below.
1)Modules
<modules>
         <(NameSpace_ModuleName)>
             <active>[true|false]</active>
             <codePool>[core|community|local]</codePool>
             <depends>
                 <(AnotherNameSpace_ModuleName) />
             </depends>
             <version>(version_number)</version>
         </(NameSpace_ModuleName)>
    </modules>

active codePool depends version

Friday, March 23, 2012

Magento Add New field in Customer Admin

Adding an Attribute in Product quite simple we can add through admin but adding a field(attribute) in customer cannot be achieved through admin so here is the simple solution for adding the attribute in Category through Database.Open the phpmyadmin.Here we need to work on three tables.

Magento How to call a phtml file in magento cms page

You can't call a phtml file by writing php code in Magento admin panel as Magento admin panel doesn't support this.

To call a PHTML write the folllowing code in the page which you have created under CMS

Monday, March 19, 2012

Magento install step by step

Easy way to install magento on local machine with XAMPP or WAMP server

1) Go to Magento and download a latest copy of this software here.
Extract the folder to C:Xampphtdocs or C:wampwww (if you install them in default mode).
Download a sample data and extract them to your folder from magento site

Saturday, March 10, 2012

Magento Template Hints

While Working on Magento Some time we can't able to find the template files of particular module so by default magento had provide the feature to Debug  that and that can be seen in Front End

When you work with Magento, you will sooner or later as a developer can not avoid the Template Hints. The template hints can be found under the Admin

System> Configuration> Developer> Debug> Template Path Hints

Make it yes for all three or you make for Template links so screen will look like this and you can easily figure out the module name with template file

Template links shown in frontend

Wednesday, March 7, 2012

Magento After Installation Admin Doesn't Login

If you want to install Magento on WAMP orXAMPP server, localhost, then you are going to face a very irritating problem with it, which does not let you go into the admin panel, even if you enter the correct details.
So, here is the simple fix to override this problem.

Sunday, March 4, 2012

Magento Add “is in stock” column in Products Grid

Adding the "Availability" in the column Catalog product gird
Here how to add new column to manage “in stock” and “out of stock” products

LinkWithin

Blog has moved, searching new blog...