upgrade magento to 1.5 or latest version

To upgrade the magento from 1.3.x ,1.4.x to 1.5.x or 1.6.x:
Take the backup of the site and database
Download the magento
$ wget http://www.magentocommerce.com/downloads/assets/1.5.1.0/magento-1.5.1.0.tar.gz
Extract it
$ tar xvfz magento-1.5.1.0.tar.gz
Flush Cache
$ rm -rf var/cache/*
$ rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*
Remove the ‘downloader’ and ‘app/design/frontend/base’ directory
$ rm -rf downloader
$ rm -rf app/design/frontend/base

Copy ‘downloader’ and ‘app/design/frontend/base’ folder from magento-1.5.1.0
$ cp -a magento/downloader .
$ cp -a magento/app/design/frontend/base/ app/design/frontend/

$ cp magento/mage .
$ chmod 550 ./mage

Upgrade now :
$ ./mage mage-setup .
$ ./mage sync –force
$ ./mage install http://connect20.magentocommerce.com/community 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
( NOTE: you may skip this ‘upgrade-all’ step if you just went ahead and did the following:

$ yes | cp -Rf magento/* . #this copies over all the magento files you extracted over your current installation

-----
To know more about the upgrade , follow this link:
Upgrade magento

Reindexing in Magento using command line

When running Magento is dealing with the indexes that it relies on. Usually you can do this from the admin panel by going to System -> Index Management.

When indexing fails from the admin panel you get a message saying that it failed with no reason why it failed. Now in most cases you cannot ignore this.

Admin & Frontend turned 404 Error after website change

Sometime after the magento upgrade , magento shows 404 error for the when we try to access the frontend and admin .
To fix this issue, you can follow 2 steps :

In the index.php page in your root directory change :
Mage::run();
by
Mage::run(’default’);

or

Run the below query , but take the db dabckup before you run the query
SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code=’admin’;
UPDATE `core_store_group` SET group_id = 0 WHERE name=’Default’;
UPDATE `core_website` SET website_id = 0 WHERE code=’admin’;
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code=’NOT LOGGED IN’;
SET FOREIGN_KEY_CHECKS=1;

Upgrade magento to higher version

There are different ways to upgrade magento to higher version. The best approach I find to upgrade is follow the below steps:

1) Take the backup of the current database.
2) Upload the latest magento on the server in a new folder say like “newmagento”
3) Create a separate database say “newdb” and run the sql dump of the current database in that.
4) Point the new database to the latest magento by doing changes in the “local.xml” file.
5) Make the necessary changes in the database table “core_config_data” by changing the base url in the latest database “newdb”
6) Run the url of the new magento url in your browser and let it process unless it shows the magento home page.

This process will upgrade your current site to current magento version.

CCAvenue Payment Module for Magento

As CCAvenue Payment gateway is very much used in India. And E-commerce is coming up in Indian market with rapid pace. Magento is one of the most popular E-commerce open source and its capturing the Indian Market as well . It help us to have the development faster and with advance features .

If you need the CCavenue Payment Module for Magento site I can provide you.
If you have any queries please contact me at:
Email address : surjan.negi@treewalker.in
Skype: treewalker.technologies
Gtalk: treewalker.technologies@gmail.com
Phone: 080-65832315
Mobile: +91-9916024769

Get Table Name in Magento

In magento if you want to have the table name , where you don’t want to hard code the table name with prefix as well .
So access the table name use the below code :
$tableName = Mage::getSingleton(‘core/resource’)->getTableName(‘catalog_product_option’);

Introduction to magento

Today Magento is widely used open source for Ecommerce development .
It has many key features which make it different from other open source :
1) Manageable
2) Scalable
3) Multi store website with same back office.
4) Increase Control.
5) Catalog Management.
6) Order Management.
7) Product Browsing.
8) International community Support.
9) Shipping
10) Catalog Browsing
11) Analytics and Reporting
12) Checkout
13) Payment
14) Customer Accounts
15) Mobile Commerce
Treewalker is a team of experienced team of Magento developers . We have extensive experience in Magento.

To visit our portfolio in magento, go to this link
Treewalker Magento Portfolio