Category Archives: Magento


Magento is an e-commerce platform created on open source technology, which provides online merchants with an exceptional flexibility and control over the content, look and functionality of their e-commerce store.

Magento is an open-source content management system for e-commerce web sites. The software was originally developed by Varien Inc., a US private company headquartered in Culver City, California, with assistance from volunteers.

Varien published the first general-availability release of the software on March 31, 2008, under the name Bento. Roy Rubin, former CEO of Varien, later sold a substantial share of the company to eBay, which is now the sole owner.

According to research conducted by aheadWorks in October 2014, Magento’s market share among the 30 most popular e-commerce platforms is about 30%.

Magento employs the MySQL relational database management system, the PHP programming language, and elements of the Zend Framework. It applies the conventions of object-oriented programming and model-view-controller architecture. Magento also uses the entity–attribute–value model to store data.


get current store details magento

Get store data : Mage::app()->getStore();

Status  : Mage::app()->getStore()->getIsActive();

Store Home Url : Mage::app()->getStore()->getHomeUrl();

Store Id : Mage::app()->getStore()->getStoreId();

Store code : Mage::app()->getStore()->getCode();

Website Id : Mage::app()->getStore()->getWebsiteId();

Store Name : Mage::app()->getStore()->getName();

Magento version upgrade to 1.6.x

NOTE :  Follow below given steps  at your own risk .
1) Make sure that you have taken the backup of the latest site and database . This is must .

2) Download the latest magento package
tar xvfz magento-

3) Go to the terminal and change the directory to the location where the current magento site is running
4) Remove all the cache files $ rm -rf var/cache/*
5) Remov the folder downloader $ rm -rf downloader
6) Copy the folder “downloader” from the latest package to the current site $ cp -a magento/downloader
7) Move the file “ mage” from the latest package to teh current site  $ cp magento/mage
8) Chnage the permision $ chmod 550 ./mage
9) Run the following commands

$ ./mage mage-setup .
$ ./mage sync –force
$ ./mage install Mage_All_Latest –force
$ rm -rf var/cache/* var/session/*
$ rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*
$ chmod 755 mage
$ php shell/indexer.php reindexall
$ ./mage upgrade-all –force

10) Copy all the file from latest package to the current site except the theme folder that the current site use
$ cp -Rf magento/* .

11) point the browser to the site url

This may take more time . so be patient. You might  get a browser error when the upgrade is being done . never mind 🙂 It normal .

12)  Thats all !!!