Monthly Archives: October 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!

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 

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 “” for Providing the Best Solution for the developer

This tool Make work Easier as than ever before!

Hope this will help you.

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
Get all categories

$categories = Mage::getModel('catalog/category')



Get all active categories only

$categories = Mage::getModel('catalog/category')




Get active categories of any particular level

$categories = Mage::getModel('catalog/category')






Get store specific categories

The following code will fetch all active store specific categories. The following helper function does so:-

getStoreCategories($sorted=false, $asCollection=false, $toLoad=true)

$helper = Mage::helper('catalog/category');

// sorted by name, fetched as collection

$categoriesCollection = $helper->getStoreCategories('name', true, false);

// sorted by name, fetched as array

$categoriesArray = $helper->getStoreCategories('name', false, false);

Clear the Cache hope this will help

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 addSo 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

1.) For Compare Products Block open: app/design/frontend/default/youttheme/layout/catalog.xml

Search for the keyword compare and you will hit 2 lines, comment all of these if you don’t want any instance of compare.

<block type="core/template" before="cart_sidebar" name="" template="catalog/product/compare/sidebar.phtml"/>

<block type="catalog/product_compare_list" name="" template="catalog/product/compare/list.phtml"/>

2.) For Recently Viewed Block open: open: app/design/frontend/default/youttheme/layout/reports.xml and comment this line:

<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />

Refresh the cache …Hope this will help you!