I’m not 100% sure it is a good idea to update default Magento files, especially app/code/core/Mage/ folder. It will work, no question about it, but if you get used to edit those often, future Magento upgrades could become a nightmare.
My approach is to leave all default files intact and to modify only following folders:
/skin/frontend/default/[theme]/
/app/design/frontend/default/[theme]/
Josh, did you post your left menu installation in the wiki ? I looked for it and found none.
Or did someone come up with installing it and make it work ?
I am really interested in this kind of menu !
Maybe I can help back on some other topic, just ask !
By the way Tomislav, I agree with you, only interface files should be modified, but until Magento Team offers us a release with this native left menu, maybe there’s no choice…
Hi all, I dont know how far everone has got with the vertical category navigation as i started it as a toy project a day or two ago when i saw this thread.
here is what i have so far, it does a menu from your categories and creates it 3 levels deep (more could be added). The advantage is that only the theme files are being changed, no magento system files (mage etc).
layout (catalog.xml)
Added the following to the <default> ..code.. </default> section
#vertical-nav ul { list-style-type: none; /* get rid of the bullets */ padding:0; /* no padding */ margin:0; /* no margin for IE either */ }
#vertical-nav ul li { margin: 0; padding: 0; display:block; margin-top: 1px; /* lines */ }
#vertical-nav ul ul li a,#vertical-nav ul li{ background-color: #FFFFFF; } #vertical-nav ul li a { display: block; padding: 3px 3px 3px 23px; margin:0; text-decoration: none; height:15px; /* hint for IE, alternatively remove whitespace from HTML */ background-color: #CCCCCC; } #vertical-nav ul li .open, #vertical-nav .activesubsub, #vertical-nav .subopen { font-weight: bolder; text-decoration: underline; color:#000000 } #vertical-nav .final{ background-color:#ECECEC; }
#vertical-nav ul ul li a { margin-left: 20px; }
#vertical-nav ul ul ul li a { margin-left: 40px; /* indent level 2 */ }
#vertical-nav a { color:#999999; } #vertical-nav a:hover { color:#666666; } #vertical-nav ul li ul li a { border-top-width: thin; border-bottom-width: thin; border-top-style: dotted; border-bottom-style: dotted; border-top-color: #CCCCCC; border-bottom-color: #CCCCCC; margin-bottom:0px; margin-top:0px; } #vertical-nav ul li ul li { margin-bottom:0px; margin-top:0px; }
I know there are probably loads of ways to improve this but its my first attempt and i only started on it an hour ago.
im afraid my code health isnt very good so working out which bits of the css control the design could be tricky but some common sense and logic should set you sound!
added a file called vertnav.phtml in app/design/frontend/[yourinterface]/[yourtheme]/template/catalog/navigation/ with the following code
<div class="vertical-nav-container box base-mini">
<div id="vertical-nav">
<div class="head">
<h4><?php echo $this->__('Categories') ?></h4>
</div>
[… ]
[/code ]
I know there are probably loads of ways to improve this but its my first attempt and i only started on it an hour ago.
im afraid my code health isnt very good so working out which bits of the css control the design could be tricky but some common sense and logic should set you sound!
No problem, it’s just that you advice to create a file called vertnav.phtml, and in the code, the file vert_nav.phtml is called.
It just needed to be corrected.
Do you guys know how to build the vertical menu “browse by” with attributes etc like in this screen shot? I have only scanned through this thread and it seems you guys got a basic version working with categories and sub categories.
Do you guys know how to build the vertical menu “browse by” with attributes etc like in this screen shot? I have only scanned through this thread and it seems you guys got a basic version working with categories and sub categories.
the browse by functionality as per the image is created using categories / attributes and making them filterable on the frontend - this is standard ‘ out of the box’ magento functionality
look through the help sections on creating products / attributes etc
#vertical-nav ul { list-style-type: none; /* get rid of the bullets */ padding:0; /* no padding */ margin:0; /* no margin for IE either */ }
#vertical-nav ul li { margin: 0; padding: 0; display:block; margin-top: 1px; /* lines */ }
#vertical-nav ul ul li a,#vertical-nav ul li{ background-color: #FFFFFF; } #vertical-nav ul li a { display: block; padding: 3px 3px 3px 23px; margin:0; text-decoration: none; height:15px; /* hint for IE, alternatively remove whitespace from HTML */ background-color: #CCCCCC; } #vertical-nav ul li .open, #vertical-nav .activesubsub, #vertical-nav .subopen { font-weight: bolder; text-decoration: underline; color:#000000 } #vertical-nav .final{ background-color:#ECECEC; }
#vertical-nav ul ul li a { margin-left: 20px; }
#vertical-nav ul ul ul li a { margin-left: 40px; /* indent level 2 */ }
#vertical-nav a { color:#999999; } #vertical-nav a:hover { color:#666666; } #vertical-nav ul li ul li a { border-top-width: thin; border-bottom-width: thin; border-top-style: dotted; border-bottom-style: dotted; border-top-color: #CCCCCC; border-bottom-color: #CCCCCC; margin-bottom:0px; margin-top:0px; } #vertical-nav ul li ul li { margin-bottom:0px; margin-top:0px; }
I have followed these steps yet nothing is showing up on my site, do i need to call this out anywhere to make it appear? Here is my site http://www.grimedigital.com/beta