I'm taking a stab in the dark at this, and someone please advise if this is incorrect.... The code below is the code for the Product finder that was in the tpl_header.php
I should be able to paste this directly into my current store tpl_header.php in any location and it should not matter. i this correct?
Code:
!--BOF Product Finder-->
<div class="clearBoth"></div>
<div id="product_finder_wrapper">
<div id="product_finder">
<?php
echo "<form action=''>";
?>
<ul>
<?php
echo "<li>";
$model1[]=array('id'=>'','text'=>TEXT_PLEASE_SELECT);
if(isset($_REQUEST['cPath1'])){
$value=$_REQUEST['cPath1'];
}
echo '<span id="pf_title">'.strip_tags(TEXT_FIND_ALL_PRODUCTS).'</span>
<span class="pf_selectbox_name">'.TEXT_MAKE . '</span>' . zen_draw_pull_down_menu('cPath1',array_merge($model1,zen_get_category_tree()),$value, 'id="cPath" class="pf_selectbox_text"');
echo "</li>\n";
echo '<li>';
echo '<noscript>';
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
if($_REQUEST['cPath1']!=""){
$value=$_REQUEST['cPath1'];
$dropdownArray=zen_get_category_tree($value);
}
echo "</noscript>";
echo "</li>\n";
echo "<li>";
$modulePath="".DIR_WS_CATALOG;
echo zen_draw_hidden_field('basemodulepath',$modulePath,'id="basemodulepath" ');
$model=array();
$model[]=array('id'=>'',
'text'=>TEXT_PLEASE_SELECT
);
if($_REQUEST['cPath1']!=""){
$model=array_merge($model,$dropdownArray);
}
if(isset($_REQUEST['select_model'])){
$value=$_REQUEST['select_model'];
}
echo '<span class="pf_selectbox_name">' . TEXT_MODEL .'</span>'
. zen_draw_pull_down_menu('select_model', $model, $value, 'id="select_model" class="pf_selectbox_text"');
echo "</li>\n";
echo "<li>";
echo "<noscript>";
if($_REQUEST['select_model']!=""){
$value=$_REQUEST['select_model'];
$dropdownArray=zen_get_category_tree($value);
}
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
echo "</noscript>";
echo "</li>\n";
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";
echo "<li>";
echo "<noscript>";
if($_REQUEST['cPath']!=""){
$value=$_REQUEST['cPath'];
}
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
echo "</noscript>";
echo "</li>\n";
?>
</ul>
</form>
</div><!--close product_finder div-->
</div>
<!--close product_finder_wrapper div-->
<div class="clearBoth"></div>
<!--EOF Product Finder-->