View Single Post
  #2  
Old 03-11-2003, 02:13 PM
  shan's Avatar 
shan shan is offline
 

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

Default

Here you go Jeff.

This will add a menu type box with the search in it.

This is from v3.3.3 but should be ok in other versions but may need the styles changed around a little

create a new file search.tpl and add it to skin1 dir

Code:
{* $Id: shan_menu_search.tpl,v 1.13 2003/03/11 07:06:43 Shan Exp $ *} <TABLE width="100%" border=0 cellPadding=5 cellSpacing=0> <TR> <TD width="26" height=26 class=VertMenuTitle>[img]{$ImagesDir}/dingbats_help.gif[/img]</TD> <TD class=VertMenuTitle height=26 valign=center>{$lng.lbl_search}</TD> </TR> </table> <TABLE width="100%" border=0 cellPadding=5 cellSpacing=0> <form method="get" action="../customer/search.php" name=productsearchform><tr> <td class=VertMenuItems><input type="text" name="substring" size="16" value="{$smarty.get.substring|escape}"> </td> </tr> <tr> <td class=VertMenuItems><a href="javascript:document.productsearchform.submit()">{include file="buttons/search_head.tpl"}</a> </td> </tr> <tr> <td class=VertMenuItems>{$lng.lbl_advanced_search}</td> </tr></form> </table>

Now in skin1/customer/home.tpl add the following bit of code where you want the new search file to appear

Code:
{ include file="search.tpl" }
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote