Archive for the ‘Magento’ Category

How to add static block to your phtml in Magento

January 31, 2012

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...

How to get manufacturers list : Magento

December 16, 2011

If you want to show the manufacturers list on your sidebar or anywhere else in magento site.  You just need add some little code. First open the file app/code/core/Mage/Catalog/Block/Navigation.php Add the below code at the end of file public function getAllManu() {...

How to get sub category list for specific category in magento

August 3, 2011

Below is the code to get sub categories list from specific category in magento. For example, if we make a category by name "brand" (fro example id is 35) and we want to show all the subcategory list as select...

How to download Magento connect

July 7, 2011

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...

How to get current currency in Magento

June 30, 2011

We know Magento support multiple currency. I have found the solution to check current currency in the Magento site frontend To get Current Currency <?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?> If you looking for current currency symbol use : <?php...

How to get product quantity : Magento

June 22, 2011

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)...

ERROR: failed to mkdir : Magento Problem

June 14, 2011

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...

Can not login into admin in localhost : Magento Problem

June 13, 2011

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...