Advantages and Disadvantages of Magento

Advantages of Magento It is open source, so it’s easy to be popular and everyone can use it. Since Magento is 100% open source platform, lots of Magento extensions including free and paid ones are available to enhance of the power of   Magento Ecommerce on your store. Magento is built to scale from 1 to a million, avoiding common pitfalls …

Continue Reading

How to Run Magento Code Externally?

Sometimes need to use Magento functions and classes from outside of the Magento platform. Please check the following code. <?php require_once(‘app/Mage.php’); //Path to Magento umask(0); Mage::app(); // Insert your code If you want run this script just save at your own name like upload.php run your script www.example.com/upload.php Hope it will help you.        

Continue Reading

How to migrate magento from one server to another?

Several way you can move server, one of the most easiest way. Follow the below Step: 1) Back up the files in the server 2) Export the Databse 3) Move the files to the new server 4) Import the databse to the new server 5) Edit the database details . please update the file “app/etc/local.xml”, with the latest Database details …

Continue Reading

Important functions list in Magento

General Related functions $this->getRequest()->getServer(‘HTTP_REFERER’); Product related functions $product->getName() $product->getSku() Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty() $product->getResource()->getAttribute(‘color’)->getFrontend()->getValue($product) $product->isSaleable() $product->isisAvailable() Mage::getModel(‘catalogrule/rule’)->calcProductPriceRule($product,$product->getPrice()) $product->getTierPrice(1) Newsletter related functions $subscriber = Mage::getModel(‘newsletter/subscriber’); $subscriber->subscribe($user_mail); Cache Related functions $tags = array(Mage_Catalog_Model_Category::CACHE_TAG); //Category block tag Mage::app()->cleanCache($tags) Product images Related functions $_product->getMediaGalleryImages()->getItemByColumnValue(‘label’, ‘LABEL_NAME’)->getUrl() Customer related functions $this->helper(‘customer’)->isLoggedIn()

Continue Reading

Error 404 Not Found in Magento Admin Login Page

This is very simple solution, Please go to your database Run below  SQL. Hope it will be solved. 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;

Continue Reading

Magento : toggleMenu not defined error

If your version is old that makes this type problem. I have been tried to several way but not solved. Lastly solved this problem. Please follow my instruction. Hope you will enjoy. To solved this problem you have to Edit core file. If you avoid to edit core you can paste in your /app/core/local and then edit. or directly edit …

Continue Reading

Why the Tier Price don’t show in Magento?

For some reason Tier price don’t show in your product price. Please check below info, hope it will solve. Points are: 1.) Clear cache. 2.)  Make sure  re-indexing is complete. 3.)  Make sure The tire price should less then normal price. 4.)  Check the code of product view page whether the code was removed?

Continue Reading