can't seem to add search

General ShopSite user discussion

can't seem to add search

Postby chico » Wed Dec 21, 2011 10:26 am

I have clicked the "Check here to add a product search field to your page" and attempted to look for this search string to add to my includes header on my custom template. On previously created pages or pages I do this minute, I can't find any search parameters in the code. I have successfully created a search on a separate Shopsite store I created, but granted, it has been a long while since I did it. Can anyone point me in the right direction?

Thanks.
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Re: can't seem to add search

Postby ShopSite Lauren » Wed Dec 21, 2011 11:16 am

Below is the search form code you can add to your custom template

<form action="[-- SHOPPING_CART_URL BASE --]/productsearch.cgi?storeid=[-- STORE.ID --]" method="get">
<input type="hidden" name="storeid" value="[-- STORE.ID --]">
<input type="text" name="search_field" class="search" size="13" value="[-- STORE.Search --]" onFocus="value=''">
<input type="submit" value="[-- STORE.Go --]">
</form>
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: can't seem to add search

Postby Jim » Wed Dec 21, 2011 11:27 am

A few other things to consider.
What version of ShopSite (10, 10sp1, 10sp2, 11, 11sp1) and what product level (pro, manager starter) do you have? Starter stores don't have the search functionality and Manager stores have reduced search functionality from what Pro stores have.

Are you using ShopSite generated pages or custom pages that you have coded outside of ShopSite?
If ShopSite generated are you using a ShopSite template or a custom template that you have created?
If you have a custom created template do you have the tag to display the search form, [-- SEARCH_FORM --], included?
On pages that you want indexed do you have the field "Index" checked on the Edit Page Content screen?
On the Utilities > Publish > screen do you have the option to "Index for Search during update" checked.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: can't seem to add search

Postby chico » Wed Dec 21, 2011 12:49 pm

10 sp2 r2.4 Pro.

Can't find my store id.

Using custom template I created. Tried inserting both the [-- SEARCH_FORM --] tag and the code into a header include. Can't figure out what is going on.
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Re: can't seem to add search

Postby Jim » Wed Dec 21, 2011 3:11 pm

StoreID is what you used as a username to log in to the store backoffice. It is also listed in the footer of the page displayed when you click on the ShopSite image at the top of any backoffice screen.

If you are putting the code in an include file, make sure you have the "PROCESS" parameter added to the tag like this
[-- include myfile PROCESS --]
If the "Process" option isn't specified the template tags in the include file will not be evaluated so they would display as text when you view the html source of the page.

Did you publish the store after you made your changes? Utilities > Publish > Regenerate.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 107 guests

cron