close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search feature not working...

Thread began 9/05/2009 12:25 pm by larsentim278054 | Last modified 9/08/2009 1:35 pm by Jason Byrnes | 3750 views | 16 replies |

larsentim278054

Search feature not working...

My search function isn't actually searching. It's just displaying product results (whatever was the last product results that I queried). It doesn't display what I'm searching for. I'm entering in the SKU or keyword. Is that not going to be found with the search feature?

Is it only going to search the description? And if that's so (I hope not!) - shouldn't it display "nothing found" or something like that?

This is the URL that it takes me to when entering in the product item ID as the search query (which is "TR081RBK" without quotes)

mydomain.com/Products_Results.php?S_ProductName=TR081RBK&Search.x=50&Search.y=8

(obviously mydomain.com is where my site's domain name would be, that's not actually the url)

Is that not what it's supposed to be?

Sign in to reply to this post

office172461

My URL looks like this:
mydomain.com/Products_Results.php?Search=Search&S_ProductName=noproduct

and returns:

Product List
No results for your search

Sign in to reply to this post

office172461

The forum put in an extra space above. The product I searched for was noproduct not n oproduct.

I just did a test searching for the SKU number and it found an existing one just fine and said "No results for your search" for a non-existing SKU.

Sign in to reply to this post

larsentim278054

Okay, so how do I get my search form to utilize the URL that yours is? And why is yours different anyways? I didn't change anything (at least, not directly with "searching". Not to my knowledge anyway)

Thanks!

Originally Said By: office172461
  The forum put in an extra space above. The product I searched for was noproduct not n oproduct.

I just did a test searching for the SKU number and it found an existing one just fine and said "No results for your search" for a non-existing SKU.  
Sign in to reply to this post

larsentim278054

Here's the php in my products_results page that has to do with searching. I think I copied all of it. Do you see something wrong with this? If you think I'm missing part of it, I'll just upload my whole products results page. Perhaps I should do that anyways?

Attached Files
searchfunction.txt
Sign in to reply to this post

office172461

I found this reference:
"when you get the product search result error by applying the template in powerstore to a newly created page this is what you get. "

Not sure if this applies to you.

This is what I have (unmodified):

<div id="searchBox">
<form id="searchForm" method="get" action="Products_Results.php" >
<input name="Search" type="submit" value="Search" id="Search" alt="Search" />
<input type="text" name="S_ProductName" id="S_ProductName" />
</form>
</div>
Sign in to reply to this post

larsentim278054

I don't think this applies to me, since I'm not receiving any error.

Also your form is the same as mine. (the inputs are just reversed but that shouldn't matter). Although I will try to reverse them back.

Originally Said By: office172461
  I found this reference:
"when you get the product search result error by applying the template in powerstore to a newly created page this is what you get. "

Not sure if this applies to you.

This is what I have (unmodified):

<div id="searchBox">
<form id="searchForm" method="get" action="Products_Results.php" >
<input name="Search" type="submit" value="Search" id="Search" alt="Search" />
<input type="text" name="S_ProductName" id="S_ProductName" />
</form>
</div>
  
Sign in to reply to this post

larsentim278054

Making my form identical to what you have doesn't do anything different.

My problem must lie with the php code in the products_results page. I'm going to open the powerstore archive file and compare the default file with the one I'm using (although there shouldn't be anything different on this part of the file, anything is possible).

Sign in to reply to this post

larsentim278054

I've compared my products_results page and the one that came in the powerstore v2 archive, and they are exactly the same.

So I don't know what's wrong.

Sign in to reply to this post

larsentim278054

I also tried your URL that you say you get when you do a search, and that DOES work for me. So how do I get my search function to use that syntax instead of whatever it's doing for me. I can't find where that's defined.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...