Wednesday, March 13, 2013

Magento Addding the Image Attribute

Adding the Attribute for Product is quite easy but Adding an Attribute for Categroy  is not easy but also not hard ,Just need to follow the magento Structure instead of Running the Query from PHPmyadmin

We can added either text field or an another image Attribute just open header.phtml Or any of the Phtml File and just add the following code which will help to generate the attribute in admin for category and also add in the Database also

Sunday, January 13, 2013

Magento Customize Toolbar for list page

Some times we need to show the toolbar as per our need ,But magento had show same tool bar at the bottom and top of listing page

so in order to change the toolbar we can customize is such a way that top toolbar will be different and bottom toolbar will be different 

Saturday, January 5, 2013

Magento models, resource models, and collections

Every Module of Magento Uses Model,Resource Models and Collections.But some time we get confused between this so let's understand in simple way 
 
A “model” is used to store data, and perhaps performs some business logics against that data.so we create model in every Module to Write some Business Logic

A “resource model” is used to interact with the database on behalf of the “model”. The “resource model” actually performs the CRUD operations.

A “collection model” holds from one to many “models” and knows how to tell the “resource model” to get rows in the basis of information it is given.

There’s a basic ActiveRecord-like one-object-one-table Model, and there’s also an Entity Attribute Value (EAV) Model.

Hope this will Help you!

Magento Stages in life Cycle of Block


Blocks are the main part of the Magento so it has own life cycle .so how it works

1) Blocks are declared in layout XML or instantiated using PHP code
2) After instantiation the _construct() and _prepareLayout() methods are called
3) The controller's renderLayout() method calls toHtml(); all children are rendered
4) _beforeToHtml(), _toHtml() and _afterToHtml

Hope this will help you

Tuesday, December 25, 2012

Enable rewrite module in XAMPP, WAMP and Apache

Sometimes we face problem in XAMPP and WAMP that rewrite module (mod_rewrite) does not work properly

It is because the rewrite module is not enabled by default in Apache’s configuration settings.
But you can enable it manually by doing few simple steps:

The configuration file generally locates at:{apache_dir}/conf/httpd.conf
  
If you are using XAMPP or WAMP package then you will find the file at:
    {xampp_dir}/apache/conf/httpd.conf
    {wamp_dir}/apache/conf/httpd.conf

Search for the following string:
    #LoadModule rewrite_module modules/mod_rewrite.

so and uncomment it (remove the ‘#’ sign).

Now search for another string AllowOverride None and replace it by AllowOverride All
Finally save the changes, close your text editor and restart your apache server.

Sunday, December 23, 2012

Magento Remove Proceed Button in Cart Page

As Cart has two Proceed checkout button at the top and Bottom but Sometimes we require to remove the Proceed checkout button in cart

Wednesday, October 31, 2012

Magento Corssell and Upsells

Some time we get confused what is Crossell and Upsell. So let's understand the meaning and concept of the These two which are very important

An upsell is to get the customer to spend more money – buy a more expensive model of the same type of product, or add features / warranties that relate to the product in question.

A cross-sell is to get the customer to spend more money buy adding more products from other categories than the product being viewed or purchased.

More over they are confusing but let's take an example

I have Purchased the Nokia Mobile so here
Samsung Mobile == Upsell product
Micromax Mobile == Upsell product
LG Mobile == Upsell product

Nokia Headphone = Cross Sell
8 GB Memory Card = Cross Sell

So this is the only difference for upsell and Crossell

Hope it will helpful!


Sunday, October 21, 2012

Magento Showing Memory Usage at the Bottom Of Footer

The purpose of the profiler is for aiding in diagnosing slow page load times.
This should never be left enabled on a deployed website.But sometime we forgot to disable There are actually two aspects of disabling it:

1. Turning off profiling under System (menu) -> Configuration (menu item) -> Developer (tab on left) -> Debug (accordion section)
2. Make sure all calls to Varien_Profiler::enable(); are commented out in your index.php file.

Hope This will Help You 

Wednesday, October 10, 2012

Magento Tool Kit for Developer

One of the most Useful Extension for the Developer point of view.

Many professional developers all over the world use this extension to find possible performance bottlenecks.
Every point of view we can handle or Easy To get All information Module,Contollers,Databse Query,Events,Block,PHTML files ,path and many more

Just check out this link and Download for Free and thanks to "mgt-commerce.com" for Providing the Best Solution for the developer

This tool Make work Easier as than ever before!

Hope this will help you.

Sunday, October 7, 2012

Magento Get Categories

Magento get All Category on Pages.Easy way to access the active ,visible,certain level f category from the Collection..Follwing are the methods which we can use to get Category

Saturday, October 6, 2012

Magento Remove Compare Products and Recently Viewed Block

Some time we get confused that which template file is working for the block which we have to removed or we need to add

So generically we can go in developer mode and enable the template links setting as Yes so we can Know which is the Template file for removing the piece of Code

For Removing the Compare Product Block or Recently View Block need to do changes in two files

Monday, September 10, 2012

Magento Create Own Log files

Magento comes with a built-in logging facility which can be enabled and configured in the back-end under System > Configuration > Developer. Alternatively you can enable the Developer Mode for the site to enable the log (on how to do this have a look at the index.php file). The exception log is always on.

Magento Comes with a built-in Logging Facility Which can be enabled and configured

Friday, September 7, 2012

Magento Add new input type in custom options

By Default Magento Product Custom options has following field which have radio,checkbox,Multiple select,Select....so if we need to add new input type in that custom options so here is the code

Note : Make sure that Don't disturb the Core Files always use Magento Standard

Use Magento Outside of Install Directory

One of the coolest parts of using Magento is that it can be accessed from different parts of the server even if you’re not within the Magento root Directory then also you can access it's functionlity

The main important or you can say life of magento is Mage.php, we need to access Mage.php because It holds the Mage class and defines some of the root functionality of Magento like retrieving the model, setting up the BaseUrl path and calling the rest of the

Magento Add attribute Filter

Magento has filterable condition which help to sort out the result.Let Look How it works

addAttributeToFilter is a function that can be called on a product collection in Magento. it adds a condition to the WHERE part of the MySQL query used to extract a product collection from the database

LinkWithin

Blog has moved, searching new blog...