Black Jack 21, on Nov 26 2008, 05:56 AM, said:
Mysterious. Because it works fine with your provided submit button code, but not with the tep_image_submit.
Perhaps you can help me with another modification. I have main categories with no products in, but with sub categories storing the products. The search did not find anything if a main category is selected in the search box. I want to force the search box to search also in the sub categories of the selected main cat. Is this possible?
Thank you in advance!
I'll add this to the next version but for now, in includes/boxes/search.php, find
'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH) . 'px" onfocus="form.keywords.value=\'\'"') . '</td></tr>' .and replace it with
'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat','1') . tep_draw_input_field('keywords', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH) . 'px" onfocus="form.keywords.value=\'\'"') . '</td></tr>' .
Jack