You can add a search box to an Item or Section page, or even to all pages in your store. You will need to copy and paste the HTML code posted below.
To add a search box to an Item or Section page:
- Sign in to your account and go to the Store Manager.
- Click the "Store Editor" link.
- Go to the Item or Section page where you wish to add the search box and click the "Edit" button in the Editor toolbar.
- Copy (Ctrl + C) and paste (Ctrl + V) the code below into a text field that accepts HTML such as the Caption field.
- Edit the code to make it specific to your store (see editing the code).
- Click "Update".
- Publish the changes once finished.
To add a search box to many or all store pages:
- From the Store Editor, click the "Variables" button in the Editor toolbar.
- Copy (Ctrl + C) and paste (Ctrl + V) the code below into a text field that accepts HTML such as the Final-text field under Page Properties. Be sure to override the variable you use to add a search box on any page you do not wish the search box to appear.
- Click "Update".
- Publish the changes once finished.
Search code
<FORM action=http://search.store.yahoo.com/cgi-bin/nsearch method=get>Search for: <INPUT type=hidden value=store_account_name name=catalog><INPUT size=30 name=query> <INPUT type=submit value=Search></FORM>
Code in red=required edits Code in green=optional edits
Editing the code
- value=store_account_name: Replace store_account_name with the account name or ID of your store (see instructions below for finding your store account name).
- Search for: replace with the text you wish to appear in front of the Search box (optional)
- Input size=30: replace "30" with the size you want for the text input field for the search box. Note: Usability experts agree that a larger field encourages users to enter more search terms which usually produces better search results so you may not wish to use less than 30 unless the design of your page prohibits the use of a large text field.
- Value=Search: replace with the name you want to appear on the button to begin the search (optional)
Finding your Store Account Name (ID)
Your Store account name or Store ID can be found on your Account Info page.
To find your Store Account Name (ID):
- Sign in to your account.
- Go to the Store Manager.
- Click the "Account Info" link under the Site Settings column.
- At the top of the page you will see "Store Account Name" (see figure 1). The account name or ID will either be the name you chose for your Store at the time you signed up (for example acmestore), or an automatically generated identifier beginning with the letters "yhst-" (for example yhst-12345678910112). When copying the account name (ID), the "yhst" must be included.
 |
| Figure 1: Account Info page with Store Account Name (ID) highlighted |