Wednesday, 24 August 2011

Show All Product link to product list page in magento

To show "view all" product link in product list page than first of all goto backend


enable Allow All Products per Page.

and than open app\design\frontend\base\default\template\page\html\pager.phtml

add this code to as you where display in page.

$url = $this -> getLimitUrl('all');
echo 'View All';

Tuesday, 9 August 2011

Check if Cms Homepage

if(Mage::app() -> getFrontController() -> getRequest() -> getRouteName() == 'cms'  && Mage::getSingleton('cms/page') -> getIdentifier() == 'home') : 
 echo "home page";

Monday, 8 August 2011

Search is not working in magento

If Search is not working in magento Then login to admin section of your site then goto -> System -> Index management. There clicked on Catalog Search Index and Reindex data.Clear your Cache and It worked .