from my blog

latest Posts


URL Opener has been created

September 2, 2011

I created the url opener which can be useful to open multiple url at a time. It can be reduce the time who work on SEO. It is good seo tool. Hope you will like it. Please check it : URL Opener

Basic WordPress Functions

August 20, 2011

Everybody wants to make wordpress theme and like to have their own blog. Below are some basic wordpress function which can help to make basic theme for wordpress. 1) <?php bloginfo('stylesheet_directory'); ?> This wordpress function returns your active theme path. Like...

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

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

We can set the browser caching expiration using .htaccess file. Copy the code below and paste it in your .htaccess file. ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType...

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

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

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

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

This is the most common problem which we face. We try to start but every time we get a warning "Warning : Terminating worker thread 0" It is because Apache use port 80. So you need to check some program...