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

How to remove Current Language selection in top menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-25-2004, 11:45 PM
 
andyng andyng is offline
 

Senior Member
  
Join Date: Mar 2004
Posts: 151
 

Default How to remove Current Language selection in top menu

Hi,

Any body know how to remove Current Language Selection in top menu under skin1.css --> head.tpl?

Since I am not a programmer and I have tried to remove some statements inside the head.tpl but not working. The code is shown as below:-

Code:
{* $Id: head.tpl,v 1.30.2.2 2004/01/09 13:29:52 svowl Exp $ *} <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TR> <TD width=27></TD> <TD>[img]{$ImagesDir}/xlogo.gif[/img]</TD> <TD valign=top align=right> {if $usertype eq "C"} {include file="customer/top_menu.tpl"} {/if} </TD></TR> </TABLE> <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TR> <TD colspan=2 class=VertMenuBorder>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> <TR> <TD class=HeadLine height=22> {if $usertype eq "C"} { include file="customer/search.tpl" } {/if} </TD> <TD class=HeadLine align=right> {if $usertype eq "C"} <table border=0 cellpadding=0 cellspacing=0> <FORM action="home.php" method=GET name=sl_form> <INPUT type=hidden name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}"> <tr> <td> {$lng.lbl_select_language}: <SELECT name=sl onChange="javascript: document.sl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </td></tr> </FORM> </table> {elseif ($usertype eq "P" or $usertype eq "A") and $login} {else} {/if} </TD> </TR> <TR> <TD colspan=2 class=VertMenuBorder>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {*<TR> <TD colspan=2 class=NumberOfArticles align=right>{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</TD> </TR>*} </TABLE>


Please shown me which statements should I remove to make it works.

Thanks!

Andy

X-cart 3.5.4.
Reply With Quote
  #2  
Old 03-26-2004, 04:43 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

remove this

Code:
{if $usertype eq "C"} <table border=0 cellpadding=0 cellspacing=0> <FORM action="home.php" method=GET name=sl_form> <INPUT type=hidden name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}"> <tr> <td> {$lng.lbl_select_language}: <SELECT name=sl onChange="javascript: document.sl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </td></tr> </FORM> </table> {elseif ($usertype eq "P" or $usertype eq "A") and $login} {else} {/if}

this has been posted a few times, always worth a search first
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 11:34 AM.

   

 
X-Cart forums © 2001-2020