View Single Post
  #2  
Old 11-15-2013, 02:13 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Link to sub-category in menu

Quote:
Originally Posted by AKassing
I've created language variables for all my categories, but I don't know how to add a link to a (sub-)categoryto another menu properly.
I used "<li><a href="home.php?cat=47">Horror</a></li>" and this works, but the names are static.
What do I need to change so the title of this link automaticaly displays the correct language variable?

Huh? There is no need to make language vars for categories or products.
Use Smarty vars to make your links... such as:

{$catid}

look at the code used in fancy categories for examples.
/skin/common_files/modules/Flyout_Menus/Icons/fancy_subcategories.tpl

Basically, let xcart (smarty) do the work.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote