Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Advanced Search page question


philmatthews

Recommended Posts

Posted

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

Posted

Another thing I forgot to ask: Do you think this is even possible or is the advanced_search.php page not designed to do this (even with modifications) due to the way it has been coded?

 

Cheers,

Phil

  • 2 years later...
Posted

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.

Posted

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.

Posted
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

Posted
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.

Posted

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:

  • 2 months later...
Posted
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?

Archived

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

×
×
  • Create New...