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

removing Search function and Languages dropdown ... how to??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-29-2004, 08:20 PM
 
jeanC jeanC is offline
 

Newbie
  
Join Date: Dec 2004
Posts: 3
 

Default removing Search function and Languages dropdown ... how to??

Hi. i clicked around and couldn't figure out in which templates i could actually remove the Search function and Languages dropdown menu.

Mine is a small site, so I don't need these. If someone could point me in the right direction, it would be much appreciated

Thanks!
__________________
version 3.5.14 [it says linux, is that also unix?]
Reply With Quote
  #2  
Old 12-30-2004, 04:25 AM
 
balinor balinor is offline
 

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

Default

Hi jeanC, those are both in the head.tpl. Remove or comment out these lines of code and you should be all set:

For search, remove this:

Code:
{if $usertype eq "C"} { include file="customer/search.tpl" } {/if}

For languages, remove this:

Code:
{if $usertype eq "C" and $all_languages_numba gt 1} <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 and $all_languages_numba gt 1} <table border=0 cellpadding=0 cellspacing=0> <FORM action="{$smarty.server.REQUEST_URI}" method=POST name=asl_form> <tr> <td>Current language:</td> <td> <INPUT type=hidden name="redirect" value="{$smarty.server.QUERY_STRING}"> <SELECT name=asl onChange="javascript: document.asl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $current_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </td></tr> </FORM> </table> {else} {/if}
__________________
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 06:59 AM.

   

 
X-Cart forums © 2001-2020