Moving Magento to a new server

Moving magento to a new server it is very simple but very careful about some changes.Please follow my step hope it will work properly. Export your database all tables are included from current phpmyadmin. suppose your development site is located at http://example.com and your live site is located at http://yourdomain.com. Now open your exported .sql database, at first step and do …

Continue Reading

How to remove the “Move to Wishlist, Edit, Move” column from the shopping cart in magento?

How to remove the “Move to Wishlist, Edit, Move” column from the shopping cart in magento? app/design/frontend/<package>/<theme>/checkout/cart/item/default.phml if you don’t get this in your theme please find out from base.Copy defualt.phtml paste into your theme “item” folder. Please comments out below code to remove “Edit option”, May be line number 70. <td> <?php if ($isVisibleProduct): ?> <a href=”<?php echo $this->getConfigureUrl() …

Continue Reading

How to solve Magento 500 Server Error?

How to solve Magento 500 Server Error? 500 Internal Server Error. This error has been occure due to inappropriate file permissions. To solve this error, change the file permission on index.php file hope it will solve this problem. Go to your cpanel, And click File Manager and then change the file permission of index.php file from 664 to 644.  Also …

Continue Reading

How to get sub category of a category in magento?

How to get sub category of a category in magento? just follow the below code.  <?php $_helper = Mage::helper(‘catalog/category’); $_categories = $this->getCurrentChildCategories(); foreach ($_categories as $_category) : if (count($_subcategories) > 0) : $_category = Mage::getModel(‘catalog/category’)->load($_category->getId()); $_subcategories = $_category->getChildrenCategories(); foreach ($_subcategories as $_subcategory): <li><a href=”<?php $_helper->getCategoryUrl($_subcategory) ?>”><?php echo $currentCat->getName();?></a></li> endforeach; endif; endforeach; ?> Hope it will work.    

Continue Reading

How to call a .phtml file in magento cms page ?

How to call a .phtml file in magento cms page? {{ block type=”catalog/product_list” name=”product_list” template=”catalog/product/list.phtml”}} inside template=”” you can write your file path. and in name=””you can give proper and unique name , in type=”” you can write your module directory also(e.g:- customer/form_login if you are calling mini.login.phtml file). One more way to call a .phtml file. You can use your layout …

Continue Reading

Meganto Banner slider not showing in home page

Meganto Banner slider not showing in home page After installation, to make a slideshow on homepage, please go to CMS->Manage Page, choose your cms homepage, and add this line of code to where you want to show banner slider: {{block type=’bannerslider/bannerslider’ template=’bannerslider/bannerslider.phtml’}}   Hope it will work.

Continue Reading

Magento Fatal error: Call to a member function setStoreId() on a non-object in /app/code/community/Magestore/Bannerslider/Block/Adminhtml/Bannerslider/Edit/Tab/Form.php on line 32

Magento Fatal error: Call to a member function setStoreId() on a non-object in /app/code/community/Magestore/Bannerslider/Block/Adminhtml/Bannerslider/Edit/Tab/Form.php on line 32 just comments below code: Like as : //$model->setStoreId(Mage::app()->getStore(true)->getId());   Hope it will work.

Continue Reading

How to change Magento DataBase configuration file?

How to change Magento DataBase configuration file? If you want to chang the Magento DataBase name, location or simple changed your username or password, please follow below information into the file: /app/etc/local.xml May be line number 43.   <host><!CDATAYour_Domain_name/Or_host_name></host> <username><!CDATAYour_user_name></username> <password><!CDATAYour_password></password> <dbname><!CDATAYour_Database_Name></dbname> Hope it will work., Have nice day.

Continue Reading