Get Em Fast:
torvista, kudos on a great module. Easy install, easy setup. I have a request to remove one of the dropdowns.......how would I do that without breaking this thing?
I have been going through this thing for 3 days because I wanted to do the same thing.
I don't claim to be a programmer, and I will not be responsible if this crashed the whole thing..... but, I tried this and it worked for me, so far...
In jscript_model_year.php :
$("#cPath").change(modelList);
//$("#select_model").change(yearList); COMMENTED OUT THIS LINE
$("#select_model").change(function() //CHANGED ABOVE LINE TO THIS
//Not used $("#select_year").focus(); THIS WAS ALREADY COMMENTED OUT
//$("#select_year").change(function() COMMENTED OUT THIS LINE
Then I commented out the lines that list the year on the page in tpl.header.php :
*/
echo "<li>";
$year=array();
$year[]=array('id'=>'',
'text'=>TEXT_PLEASE_SELECT
);
if($_REQUEST['select_model']!=""){
$year=array_merge($year,$dropdownArray);
}
if(isset($_REQUEST['cPath'])){
$value=$_REQUEST['cPath'];
}
if($_REQUEST['select_model']!=""){
echo '<span class="pf_selectbox_name">' . TEXT_YEAR . '</span>' .
zen_draw_pull_down_menu('cPath',$year , $value, 'id="select_year" class="pf_selectbox_text"');
}
else {
echo '<span class="pf_selectbox_name">' . TEXT_YEAR .'</span>' .
zen_draw_pull_down_menu('cPath22',$year , $value, 'id="select_year" class="pf_selectbox_text"');
}
echo "</li>\n";
//Begin No-Script
echo "<li>";
echo "<noscript>";
if($_REQUEST['cPath']!=""){
$value=$_REQUEST['cPath'];
}
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
echo "</noscript>";
echo "</li>\n";
*/
Hope this helps.