![]() |
Adding Additional Categories Menu
Hi,
I was just wondering why, when I tried copying the code from the '/customer/categories.tpl' template file to a new template file dynamicDropDown.tpl. :D/ Is there any reason why when I copy the above it doesnt appear at the top of the customer page? /customer/home.tpl 8O Just eventually I was wanting an autogenerating drop down menu css styled with root categories at the top so that when you hover over them, the sub categories come down. I would appreciate a response asap, Jeremy |
Re: Adding Additional Categories Menu
You'd need to put the call to that new template in customer/home.tpl in order for it to be displayed.
{include file="dynamicDropDown.tpl"} Moving to Template Editing |
Re: Adding Additional Categories Menu
I will then retry that, as I already tried that approach but just didnt seem to work.
Maybe I'm doing something wrong, if it doesnt work again I'll post what I put and try and show screenshots of it, if you'd like? Might make it easier to explain lol. Regards, Jeremy. |
Re: Adding Additional Categories Menu
Be sure to clear your template cache after you make the changes (summary/tools)
|
Re: Adding Additional Categories Menu
I am very sorry to say, it doesnt work, even when I try clearing the cache nothing works, it does however work when I put the new one under the old one but its like doubling the category box.
Is there anything more you can suggest I do? Jeremy. |
Re: Adding Additional Categories Menu
Not sure I follow - if it is showing under the old one, it is working, you just need to remove the old one?
|
Re: Adding Additional Categories Menu
Sorry I didnt explain properly, do apologise about that.
What I am wanting is the original standard categories menu on the left top menu (standard in X Cart as you know). What I was basically wanting to add was a 2nd root menu in the main area, with a particular CSS style with a javascript to make a drop down of products, like we're selling OEM ink cartridges and then have a drop down of say printer models for that brand. Is this possible do you know? Thanks again and sorry for the confusion. Jeremy. PS I have further looked into this, it seems to not allow me to use the variables twice ie putting simply {include file="dynamicDropDown.tpl"} but yet it does work when its entered just below the categories field its really a mystery as to why its not appearing at all. |
Re: Adding Additional Categories Menu
In order to do what you want, you need to custom code your javascript, put it in dynamicDropDown.tpl and call it from home.tpl. If you are simply making a copy of the category template and it shows below the main category list, the include is working fine, it is just your javascript that probably isn't.
|
All times are GMT -8. The time now is 08:02 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.