View Single Post
  #1  
Old 10-28-2004, 03:39 PM
 
SonnyZ SonnyZ is offline
 

Member
  
Join Date: Oct 2004
Posts: 14
 

Default Need Help, I'm trying to move Search bar to left column, got

I'm trying to move the search function to the left column, right above or below the Catergories section. Customer Support gave me this, but eveytime i do it, i check on the browser and the whole page is white.

1. Create sonny_search.tpl file with the following contents:

{capture name=menu}


{include file="customer/search.tpl"}


{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_search menu_content=$smarty.capture.menu }



2. Upload this file into your <xcart_dir>/skin1/ directory.

3. Modify your <xcart_dir>/skin1/customer/home.tpl file, namely:

insert the following code:



{include file="sonny_search.tpl"}



into the place you want, for example, immidiately after:

{include file="customer/special.tpl"}

4. Modify your <xcart_dir>/skin1/customer/search.tpl file, it should contain the following code:

<TABLE border=0 cellPadding=0 cellSpacing=0>
<form method="get" action="search.php" name=productsearchform>
<tr>
<td width=20></td>
<td valign="middle">
<input type="text" name="substring" size="16" value="{$smarty.get.substring|escape}">
</td>
<td valign="middle">
{include file="buttons/search_head.tpl"}
</td>
</tr>
<tr>
<td colspan=3 align="center"><u>{$lng.lbl_advanced_search}</u></td>
</tr>
</form>
</TABLE>

5. Do not forget to remove the following code:

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

from your <xcart_dir>/skin1/head.tpl file.
// you can just comment it out, like that:

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


--------------------------------------------------

I can't seem to get it to work, i've followed the directions numerous times. I'm not sure what Version i'm using, I just bought x-cart a few days ago and got the "Reliable" version. Please Help
__________________
X-Cart - 4.1.8
Apache/1.3.33 (Unix)
Reply With Quote