philmatthews Posted April 7, 2005 Posted April 7, 2005 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
philmatthews Posted April 8, 2005 Author Posted April 8, 2005 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
horsewhip Posted February 15, 2008 Posted February 15, 2008 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.
Mav666 Posted February 15, 2008 Posted February 15, 2008 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.
ianric Posted February 15, 2008 Posted February 15, 2008 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
horsewhip Posted February 15, 2008 Posted February 15, 2008 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.
horsewhip Posted February 15, 2008 Posted February 15, 2008 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:
PJ2006 Posted May 2, 2008 Posted May 2, 2008 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.