| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding Additional Categories Menu | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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. ![]() Is there any reason why when I copy the above it doesnt appear at the top of the customer page? /customer/home.tpl ![]() 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
__________________
Version 4.1.11 on Linux (Fedora) X-Cart Gold |
|||||||
#2
|
|||||||
|
|||||||
![]() 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
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.11 on Linux (Fedora) X-Cart Gold |
|||||||
#4
|
|||||||
|
|||||||
![]() Be sure to clear your template cache after you make the changes (summary/tools)
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.11 on Linux (Fedora) X-Cart Gold |
|||||||
#6
|
|||||||
|
|||||||
![]() Not sure I follow - if it is showing under the old one, it is working, you just need to remove the old one?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.11 on Linux (Fedora) X-Cart Gold |
|||||||
#8
|
|||||||
|
|||||||
![]() 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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|