How to check home using php in magento. <?php $is_homepage = Mage::getBlockSingleton(‘page/html_header’)—>getIsHomePage(); if($is_homepage) { ?> You are in home page!! <?php } ?>
Display product list on home page in magento To display a product list on the home page in Magento, you can use widgets, layout XML updates, or modify…
To create a sticky effect on the main navigation bar above when a user scrolls passed beyond it. Use below jquery code jQuery(function(){ var menuOffset = jQuery(‘#site-navigation’)[0].offsetTop; jQuery(document).bind(‘ready…
htaccess for magento in subdirectory Steps 1. Install Magento to /public_html/magento/ normally. Do not change Base URL during installation. 2. Copy /public_html/magento/.htaccess to /public_html/.htaccess 3. Copy /public_html/magento/index.php to…
Show Page for Particular User Group In Magento To show a page for a specific user group in Magento, you need to implement customer group restrictions using layout…
Get current category ID and name on category page in magento. We used this code : <?php echo Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getName(); ?> <?php echo Mage::getModel(‘catalog/layer’)->getCurrentCategory()->getId(); ?>