Posts Tagged ‘Magento’

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

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