I was able to follow the above steps in the latest version and was able to have the Left navigation on the HOME PAGE. I utilized the left.phtml file provided with the installation. The only problem I am having is that that the left navigation shows up on the Product pages as well. so now I have two Category navigations.
I just want this to add a Left Navigation on the home page. Not on the Product/Catalog page...etc. I also noted that there is already a reference on the catalog.xml page for left nav BUT WHERE DO I define refernces for the home page?? is there an xml page, just lake catelog.xml that I can defiene things that I want to be on the home page??
I also created a variation of the vertical category menu display, that will show a list of main categories, with a subcategories for only the active one, and without empty main categories:
If you want to put this on the Home page too, you need to check if you have an active category, otherwise you’ll get a Cannot retrieve current category object message.
Thank you Joe for the code reference that does work beautifully.
I am trying to go 1 step further and have a combination of your two examples.
First I am splitting out the categories into their own visual groups.
Next, I am listing the subcategories in Joe’s example 1 open spread (minus the homepage category using the method in example two),
What i want to do is then list the products under each category on the left with the expansion//collapse capability from (joes) example two.
This is expanding, however the Product example shows under all child categories, not just the one selected.
Lovely bit of code there! How would I adjust this to show my third level categories? For example:
Main Category
- Secondary cat
- Third level 1
- Third level 2
- Secondary cat 2
Main Category 2
Main Category 3
Ideally, once you click into the main category, it will show both the other mains, and all of the seconday categories. Once you click a secondary category, third level ones show for that click, leaving the secondaries and the main categories in place.
Home (main category 1) <-- Invisible, allows items to be displayed on home page. ----------------------------
Assemblies (main category 2) <-- Invisible nothing in it ----------------------------
Modules (main category 3) <-- First visible with populated Subcategories
Show All Modules
1. Jungle gym / SUS φ8 <-- Child Category 1 (always displayed) a. Subcat 1 <-- Child Category 1.a b. Subcat 2 <-- Child Category 1.b c. Subcat 3 <-- Child Category 1.c (displayed when Parent is chosen) i. group product a -> associated products in parts below <--Child Category 1.c.i (displayed when Parent selected) i. group product b i. group product c i. group product d i. group product e 2. Jungle gym / SUS φ12 3. Jungle gym / SUS φ20 4. Lets joint / Profile20X10 5. Lets joint / Profile25X25 6. Lets joint / Profile50X25 7. Shared module / SUS Profile
----------------------------
Parts (main category 4) <-- Second visible with subcategories below
Show All Parts
1. Quick Mount Chuck Attachment 2. Basic Frame 3. Mini Cylinder 4. Mini Cylinder Accessory 5. Container Cylinder 6. Function Chuck 7. Suction Pad 8. Special Suction Pad 9. Suction Stem 10. Sliding Chuck 11. Vacuum Unit 12. Mini Air Nipper 13. Air Nipper 14. Accessories for Air 15. Product Confirmation Sensor 16. Deionizer Unit
I tried to implement the code above to print my categorie list, but i got this error :
Fatal error: Call to a member function count() on a non-object in /home/XXX/www/nolitech.be/app/design/frontend/default/nolitech/template/catalog/navigation/list.phtml on line 3
Sorry for this stupid question but i’m just discovering Magento
The code I shared in here only applies to magento v0.7.x, and not for latest ones.
I’m waiting for the production release to make an update, and I will share it.
i tried to put joes Menu to my Magento 1.0 Version, but I always get an Redirect-error. There must be an error in this code-block from left_menu.phtml:
If I delete this block, the top catgeories are shown. But if I enter one catgeorei, I only see the subcategories under this one main_categorie. so it seems like this donesn`t work in Magento 1.0. Has anybody the same problem or fixed it for Magento 1.0?