Assignment GDB Solution: Magento

loading...

Show subcategories on category page

Show subcategories on category page <?php $_helpernew = Mage::helper(‘catalog/category’); $_subcategories = $_category->getChildrenCategories();?> <?php if (count($_subcategories) > 0): ?> <ul> <?php foreach($_subcategories as $_subcategory): ?> <li> <a href=”<?php echo $_helpernew->getCategoryUrl($_subcategory) ?>”> <?php echo $_subcategory->getName() ?> </a> </li> <?php endforeach; ?> </ul> <?php endif; ?>

Exception printing is disabled by default for security reasons

Exception printing is disabled by default for security reasons Mostly for magento sites you face following error. Exception printing is disabled by default for security reasons. Error log record number: XXXXXXXXXXXXXXX In this case you need to check following steps. Go to folder errors at magento root and  Rename local.xml.sample to local.xml after this change you can […]

Remove breadcrumbs from the Magento template design

Remove breadcrumbs from the Magento template design You can find the breadcrumbs at the following path: app/design/frontend/base/default/template/page/html/breadcrumbs.phtml Replace the entire content of that file with: <?php ?> Or skin\frontend\default\your_template\css\breadcrumbs.css .breadcrumbs {                 display: none; } Any of the trick will get you rid of breadcrumbs.

Maximum execution time exceeded on Magento Installation on localhost

Maximum execution time exceeded on Magento Installation on localhost If you are trying to install Magento on your localhost, WAMP or XAMPP, but your installation gets stuck in the middle with an error message, Fatal error: Maximum execution time of 60 seconds exceeded in c:\wamp\www\magento\lib\Zend\Db\Statement\Pdo.php on line 228 then here is the solution for that to […]