Hello everybody,
Is there any tutorial for top links or top menu.I want to customize top links.
please help me.
Thanks.
Printable View
Hello everybody,
Is there any tutorial for top links or top menu.I want to customize top links.
please help me.
Thanks.
Just some code for custom category menu navigation. I’m a bit short on time so, no fancy walk trough. All you need to make this show on your page is to call it inside layout file like
Filename: customcatnav.php.HTML Code:<block type=”core/template” template=”surgeworks/customcatnav.php” />
PHP Code:
<?php
//Get store id
$storeId = Mage::app()->getStore()->getId();
//Get category model
$_category = Mage::getModel(‘catalog/category’)->setStoreId($storeId);
$_categoryCollection = $_category->getCollection();
$_categoryCollectionIds = $_categoryCollection->getAllIds();
//Remove root category from array
unset($_categoryCollectionIds[0], $_categoryCollectionIds[1]);
?>
<div class=”content”>
<?php
$o = null;
$o .= ‘<dl>’;
foreach ($_categoryCollectionIds as $catId)
{
$_category = $_category->load($catId);
if($_category->getLevel() == 2)
{
$catChildren = $_category->getChildren();
if(!empty($catChildren))
{
$o .= ‘<dt>’.$_category->getName().’</dt>’;
$categoryChildren = explode(“,”, $catChildren);
foreach ($categoryChildren as $categoryChildId)
{
/* @var $_childCategory Mage_Catalog_Model_Category */
$_childCategory = $_category = Mage::getModel(‘catalog/category’)->setStoreId($storeId)->load($categoryChildId);
$o .= ‘<dd>’;
$o .= ‘<span class=”categoryName”><a href=”‘.$_childCategory->getUrl().’”>’.$_childCategory->getName().’</span class=”totalNumberOfProducts”></a>’;
$o .= ‘<span class=”totalNumberOfProducts”>’.$_childCategory->getProductCollection()->count().’</span>’;
$o .= ‘</dd>’;
}
}
}
}
$o .= ‘</dl>’;
echo $o;
?>
</div><?php //content ?>
Hello Bab,
Following url in great help for customized top category in magento :
http://www.webslike.com/Thread-How-T...els-In-Magento
Hi Bab,
This tutorial will definitely help you to customize the top links :
http://www.excellencemagentoblog.com...nks-in-magento
For more tips and tutorial about magento visit : http://www.ilovemage.com/learn-magen...velopment.html
Thanks
iLoveMage
Hello,
you can look at another magento top links which are benefit for your ecommerce business.
(1) Planning to Hire Magento Developers – Here’s everything you need to know
(2) Magento ecommerce platform – An ideal choice to expand your ecommerce business
(3) Product customization – The new frontier of Fashion Magento Ecommerce!
(4) Nothing like Gamification to Boost up Your Magento Store Conversions
(5) How Not To Compromise Your Magento Site Security
(6) 7 Things To Consider Before Selecting Any Magento Development Company
(7) How to find a Great Developer to Support You with Your Magento Development Needs?
Good luck.
In the event that you simply need to change the Header Links Title, you can do as such by utilizing Magento Translate Inline instrument. Login to your Magento Admin board and go to System - > Configuration. Look down and click the Developer menu thing. Snap Translate Inline tab and select YES starting from the drop Enabled for Frontend choice.
In this blog I will disclose how to include header and top connection with default.xml document. Header interface is shown for both visitor and signed in clients.