Thursday 26 September 2013

Debug tool is showing layout using Extensions


This debug tool is showing layout, block,model functions and queries executed behind each page load in magento. it  might be useful for debugging.




http://www.magentocommerce.com/magento-connect/magneto-debug-8676.html

Thursday 25 April 2013

Redirect www. using htacess


RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule (.*) http://www.domain.com/$1 [L,R=301]

Friday 7 September 2012

How to decompress a javascript & HTML through online




How to decompress a javascript & HTML through online?


All of the source code is completely free and open, and we have a command-line version and a python library as well.

http://jsbeautifier.org/

Thursday 6 September 2012

How to use cufon css inside jquery


How to use cufon css inside jquery
Examples:1
<script>
jQuery("your css class name").hoverIntent(
     function() {
Cufon.replace(".classname",{fontSize:'38px'});
}
);
</script>
**********************************************************************************************************************
Use jQuery object inside Cufon
Example 2:
<script>
    jQuery("your css class name").hoverIntent(
function() {Cufon.replace(($(this).find('a')),{hover: true, color: '#fff'});});
</script>
*********************************************************************************
Multiple Cufon on a Single page
Example 3:
<script src="cufon.js" type="text/javascript"></script>
<script src="Aliquam_400.font.js" type="text/javascript"></script>
<script src="Helvetica_Neue_900.font.js" type="text/javascript"></script>
<script>
Cufon.replace("h1",{fontFamily: 'Aliquam'});
Cufon.replace("h2",{fontFamily: 'Helvetica_Neue'});
</script>
*********************************************************************************
Edit cufon canvas in css
Example 4:

ul.footer_menu_inner_list li cufon canvas {top:-4px!important;}
a.parent_active cufon canvas{left:-20px!important;}

*********************************************************************************

Friday 6 April 2012

Service Temporarily Unavailable The server is temporarily unable to service your request ..


Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

HERE IS THE SOLUTION: 
delete the following file from your root folder /magento/ installation
(or)
maintenance.flag
e.g. rm ./magento/maintenance.flag

Wednesday 4 April 2012

to call contact form in CMS page.


Go to CMS> Manage Pages interface
Insert the below code in content area

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

To print product category name in product description page


Go to catalog/product/view.phtml

<?php $categories = $_product->getCategoryIds(); ?>
<?php foreach($categories as $i => $_category_id): ?>
<?php $_category = Mage::getModel('catalog/category')->load($_category_id) ?>
<a href="<?php echo $_category->getUrl() ?>"><?php echo $_category->getName() ?></a>
<?php endforeach; ?>

Monday 2 April 2012

To add Sitemap to a Magento websites

It helps mostly for Search Engine Optimization(SEO).

-> Goto System> Configuration> Catalog> Google Sitemap. Enable all the options in there

-> Goto System> Configuration> Catalog> Catalog> Sitemap and enable the Sitemap Creation option.