View Single Post
  #5  
Old 11-15-2013, 02:40 AM
 
AKassing AKassing is offline
 

Member
  
Join Date: Jun 2013
Posts: 17
 

Default Re: Link to sub-category in menu

Quote:
Originally Posted by vasilis
If you mean, displaying a category name in alternative site language in a different place in the page, you could try the following code (I am not sure if this is what you mean):

Code:
{foreach from=$categories_menu_list item=c name=categories} {if $c.categoryid eq '47'} <li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category|amp}</a></li> {/if} {/foreach}

The variable names might differ, according to your xcart version.

I just want the sub-categories from category "All Products" to be visible in another menu. I got this to work by adding this:
<li><a href="home.php?cat=47">Horror</a></li>
<li><a href="home.php?cat=50">Sci-Fi Science Fiction</a></li>
<li><a href="home.php?cat=6">Disney</a></li>
<li><a href="home.php?cat=40">Music & Dance</a></li>
<li><a href="home.php?cat=44">Western</a></li>
<li><a href="home.php?cat=48">War</a></li>
<li><a href="home.php?cat=42">Martial Arts</a></li>
<li><a href="home.php?cat=45">James Bond 007</a></li>
<li><a href="home.php?cat=41">Kids & Animation</a></li>
<li><a href="home.php?cat=43">(S)exploitation</a></li>
<li><a href="home.php?cat=46">Marvel & Superheroes</a></li>
<li><a href="home.php?cat=49">Vintage-Classic Pre-1970</a></li>

However, I want X-Cart to automaticaly display the corresponding title of that sub-category in the correct language. The way I did it they are the same in all languages. What code do I need to add or replace the above titles with?
__________________
X-Cart 4.5
Reply With Quote