isShippingLabelsAvailable : Magento Issue

Magento Version 1.6 has a bug related to isShippingLabelsAvailable() method.   When you try to make shipment an order you may be get a error :   Fatal error: Call to a member function isShippingLabelsAvailable() on a non-object in app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php on line 132   This error lies in the Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Items class on line 130 within the canCreateShippingLabel() method. [...]


Service Temporarily Unavailable in Magento

Some time we face the 503 error in Magento website. Reason behind it is Magento Downloader. If you will check Magento Downloader you will get a option to unable or disable the maintenance mode. You can go to Magento Downloader directly by adding “downloader” after your domain name. E.g. http://www.yourdomain.com/downloader


How to add static block to your phtml in Magento

Static Block plays a big role in magento to show the information, links, banner etc. on the Magento sites. All the website developer use static block in a different manner. below is the process to add static block in your phtml file (Magento Theme File). 1) First login into magento admin and create a static [...]


How to download Magento connect

All the Magento programmer know, we can install the magento extenstion using magento connect manager. But sometime we face some problem to install like write permission or whatever. After that we realized, if we can download the magento extension and upload via ftp. You can use this “Magento Connect Downloader” Just paste the extension key [...]


How to get product quantity : Magento

Sometimes we want to show remaining quantity of a product in our magento shop. Simple method to get product quantity is:   <?php (int) Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty(); ?> It can be helpful to show an alert message like below:   <?php $product_qty=(int) Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty(); if($product_qty<5) echo “Hurry up $product_qty quantity remaining”; ?>  


ERROR: failed to mkdir : Magento Problem

All the website developer (who works on Magento) know how to install the magento extension. We use magento downloader   to install extension. But sometimes we receive the an error “ERROR: failed to mkdir”. Generally you get the problem after moving the site from one host to another host. I just found the solution for [...]


Can not login into admin in localhost : Magento Problem

this is the most common problem we face when we install the magento in localhost. This is because of  session parameter. Really simple solution to commenting a single line. Below is the solution 1) go to root/app/code/core/Mage/Core/Model/Session/Abstract/ 2) Open the file Varien.php 3) go to line no. 100 4) you will get call_user_func_array(‘session_set_cookie_params’, $cookieParams); 5) [...]