X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   removing Search function and Languages dropdown ... how to?? (https://forum.x-cart.com/showthread.php?t=11174)

jeanC 12-29-2004 08:20 PM

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!

balinor 12-30-2004 04:25 AM

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}



All times are GMT -8. The time now is 04:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.