Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding Additional Categories Menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-25-2009, 04:13 AM
 
Jeremy Smith Jeremy Smith is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 167
 

Lightbulb 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.

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
Reply With Quote
  #2  
Old 02-25-2009, 04:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-25-2009, 04:31 AM
 
Jeremy Smith Jeremy Smith is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 167
 

Default 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.
__________________
Version 4.1.11 on Linux (Fedora)
X-Cart Gold
Reply With Quote
  #4  
Old 02-25-2009, 04:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Adding Additional Categories Menu

Be sure to clear your template cache after you make the changes (summary/tools)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-25-2009, 07:47 AM
 
Jeremy Smith Jeremy Smith is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 167
 

Default 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.
__________________
Version 4.1.11 on Linux (Fedora)
X-Cart Gold
Reply With Quote
  #6  
Old 02-25-2009, 07:53 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 02-26-2009, 12:17 AM
 
Jeremy Smith Jeremy Smith is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 167
 

Default 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.
__________________
Version 4.1.11 on Linux (Fedora)
X-Cart Gold
Reply With Quote
  #8  
Old 02-26-2009, 04:01 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:50 PM.

   

 
X-Cart forums © 2001-2020