Magento Categories Sidebar Navigation

Share
Posted on May 4th, 2013 | Posted by admin

Magento categories sidebar navigation to use in the left or right sidebar.
Contains php code to include in the /category/navigation/nameofthefile.phtml . Call it from the category.xml.

01.<?php
02.$categories = Mage::getModel('catalog/category')->load(1)->getChildren();
03.$categoryIDs = explode(',',$categories);
04.?>
05.<ul>
06.<?php foreach($categoryIDs as $categoryID): ?>
07.<li>
08.<?php $category = Mage::getModel('catalog/category')->load($categoryID);?>
09.<a href="<?php echo $category->getUrl()?>">
10.<?php echo $category->getName()?>
11.</a>
12.

Create a left hand navigation / vertical category in Magento

Share
Posted on May 3rd, 2013 | Posted by admin

Create a left hand navigation / vertical category in Magento

1)

Create vert_nav.phtml in app / design / frontend / default / default / template / catalog / navigation

__(‘Categories’) ?>

__(‘Category Navigation:’) ?>

Zend Framework navigation with breadcrumbs

Share
Posted on April 26th, 2011 | Posted by admin

It’s been a while since I last time played with beauty of Zend Framework.

Each time I check new features it seems to me that the things are more simplier than the last time,
I might be wrong (I wouldn’t bet on that) or I’m just getting better

Let’s check this piece of cake – how you can create navigation with breadcrumbs in Zend Framework project.
As many things in Zend Framework you can get same features in different ways,
so the same thing goes with the Zend_Navigation class.

First of all you need to decide which way you will choose:
- navigation with xml setup file or
- from application.ini file

Magento Navigation, how to customize very helpful information?

Share
Posted on March 23rd, 2011 | Posted by admin

This post describes how Magento navigation works. I hope it will help you.
The begining of all is in template file: “category/navigation/top.phtml”

1
2
3
4
5
6
7
8
<ul id="nav">
< ?php
foreach ($this->getStoreCategories() as $_category): ?>
< ?php
echo $this->drawItem($_category);
?>
< ?php endforeach ?>
</ul>

There we call the method from class Mage_Catalog_Block_Navigation $this->getStoreCategories(). This method returns the array $_nodes from object Varien_Data_Tree_Node_Collection.

This array contains objects of Varien_Data_Tree_Node.
Every node is object of Varien_Data_Tree_Node and it is extension from Varien_Object.

Magento Navigation, how to customize very helpful information?

Share
Posted on February 23rd, 2011 | Posted by admin

Magento Navigation, how to customize very helpful information?

This post describes how Magento navigation works. I hope it will help you.
The begining of all is in template file: “category/navigation/top.phtml”

1.<ul id="nav">
2.< ?php
3.foreach ($this->getStoreCategories() as $_category): ?>
4.< ?php
5.echo $this->drawItem($_category);
6.?>
7.< ?php endforeach ?>
8.</ul>
Page 1 of 212»