spencermjax Posted May 1, 2006 Posted May 1, 2006 I have just added four new fileds to my product page (shape,color,clarity,carat - see image below). I would like to add a checkbox or radio button to my advanced_search page and have that button be compared to the corrasponding field. For example: user clickd radio button "round", I would like to compare that value to all of the products_shape field and if a match is found that product would be added to the displayed products list. Any ideas on how to do this?? other ideas: I want to do that for each of the 4 new prodct fields. So in that case when the form is submitted, I will need to find/display all products that match each of the fields (or as many selections as they have selected). If this does not make sense, take a look at this perfect example . this site is also using OSC. Heck, I even sent him a PM and offered to buy his search code from him...no reply as of yet.
Guest Posted May 2, 2006 Posted May 2, 2006 Add your field like any of the others in advanced_search.php and then add it to the $where_str is advanced_search_result.php - just look at how other things are done :) Look at the URL on a search result on that site: advanced_search_result.php?Shape=MQ&weighti=&i1=&colorfromi=&colortoi=&clarityfromi=&claritytoi=&manufacturers_id=&pfrom=0&pto=100000&keywords=&x=25&y=8 Matti
Recommended Posts
Archived
This topic is now archived and is closed to further replies.