Go Back   3dCart Shopping Cart Software Forums > Shopping Cart Software > General Configuration Questions

Reply
 
Thread Tools Display Modes
  #1 ()  
Old 12-06-2007, 09:05 PM
Colleen Colleen is offline
3dCart Newbie
 
Join Date: Nov 2007
Posts: 6
Unhappy Search field

Hi All.
For asome reason I do not have a search field on my shopping cart and cannot figure out how to activate it.HELP!!
Reply With Quote
  #2 ()  
Old 12-08-2007, 01:38 AM
ScribeTime ScribeTime is offline
3dCart Power User
 
Join Date: Aug 2007
Posts: 209
Default

You may first want to make sure that you don't have the search function turned off on your site. You can go to Settings>>General>>Store Settings. Under Store Display Features make sure that the box for "Hide search" is not turned off. If that's not the problem, maybe you don't have the right code.

The code I use is below (not sure what the generic code is). You can also check many of the frame files in the various folders under templates. You'll of course need to adjust the table/cell information, height, etc... depending on where you want to place it on your site. Mine happens to be in the left column.

CODE:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><!--START: FRAME_SEARCH-->
<form method="get" action="search.asp" STYLE="margin: 0px; padding: 0px;"><table width="100%" height="34" border="0" cellpadding="0" cellspacing="0">

<tr>
<td align="right" class="font3">&nbsp;[frame_search]</td>
<td align="center" class="font3"><input name="keyword" type="text" class="txtBoxStyle2" value="enter keyword(s), theme" size="28" /></td>
<td align="left" class="font3"><div align="left">
<input type="submit" name="search" value="GO" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'" />
</div></td></tr>
</table>
</form> <!--END: FRAME_SEARCH--> </td>
</tr>
</table>



Hope this helps!
Reply With Quote
  #3 ()  
Old 12-15-2007, 01:54 AM
DaveW DaveW is offline
3dCart User
 
Join Date: Nov 2007
Posts: 48
Default

Scribe,

I used (stole) your code to move my search box. One question: Is there a way to have the default text in the searchbox automatically go away when you click on it? E.G. It says "Enter keyword(s)...." and you have to delete that first manually before entering your own search term.

Thanks,

DaveW
Reply With Quote
  #4 ()  
Old 12-17-2007, 07:21 PM
DaveW DaveW is offline
3dCart User
 
Join Date: Nov 2007
Posts: 48
Default

Answering my own question...

I used the following:

Quote:
<input name="TEXTBOXNAME" type="text" id="TEXTBOXID" value="YOURTEXTBOXVALUE" size="20" maxlength="50" onfocus="if (value='YOURTEXTBOXVALUE') {value=''}" onblur="if (value=='') {value='YOURTEXTBOXVALUE'}" />
Found on Google.

HTH Future Searchers,

DaveW
Reply With Quote
Reply


Thread Tools
Display Modes

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. The time now is 12:28 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8