Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Advanced Search page question


philmatthews

Recommended Posts

Hello everyone.

 

I am currently pulling my hair out trying to find a way to change the advanced search. As you know it has two drop down menus (one for categories, one for manufacturers). If you leave the search box blank and select 1 (or 2) of the drop down menus there is an error saying:

 

"At least one of the fields in the search form must be entered"

 

This makes sense to get best search results. However, my client wants the site to all searches to be made without anything typed in to the search box. For instance: If a visitor selects an option on one of the drop down menus then clicks search they will be shown everything in this category/manufacturer.

 

I appreciate your help on this one, I can't seem to find the answer!

 

Thanks : )

Phil

Link to comment
Share on other sites

  • 2 years later...

I had requested help with a solution to exactly what this member is asking, and never received a reply either...Is it possible that this just isnt doable in OSC? I am a pretty good programmer, so i went playing with the advanced search code, placing a space or   wherever possible, to try and get the system to recognize it, however would be invisible to the user...

I actually got the system to put in a space in the search box, so i thought my problem was solved, hit search, comes back with the "At least one of the fields in the search form must be entered"...I remove the space, hit the spacebar, and voila, it searches...makes no sense yet...this is basically the last thing i need to do for my client, and i just can figure it out.

Please help.

Link to comment
Share on other sites

I think you are referring to the java script:function check_form() at the top - if you take that out or rewrite it, you can turn the error off and then deal with the fallout on the php side ...

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

I think you are referring to the java script:function check_form() at the top - if you take that out or rewrite it, you can turn the error off and then deal with the fallout on the php side ...

Hi Paul

 

I've done this and it works but forgot how and where I found the answer. I did a seach and found this thread

 

I think it's the one I'm using because the lines mentioned are missing from my search file. I added the missing lines and the error happened so looks like I am using this

 

HTH

 

Ian

Link to comment
Share on other sites

Hi Paul

 

I've done this and it works but forgot how and where I found the answer. I did a seach and found this thread

 

I think it's the one I'm using because the lines mentioned are missing from my search file. I added the missing lines and the error happened so looks like I am using this

 

HTH

 

Ian

 

Thanks Ian.

 

I had eyed that part of the code, but was unsure if it hinged on anything else...I will give it a try, thanks again.

Link to comment
Share on other sites

  • 2 months later...
AWESOME, thx sooooooooo much for the topic Ian... worked like a charm. I havent had any other hiccups in the system, so hopefully that code isnt depended on elsewhere in the system.

 

:thumbsup:

 

This did not work for me, any other suggestions?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...