pilon Posted February 2, 2010 Share Posted February 2, 2010 Hello, I install a contribut that search by the attributes... i make some changes to creat a box with search fields, in the firefox works very well, but in the IE the buttom "search" dont do nathing... The code is "<?php echo tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH); ?>" i thing it is correct... maybe the position of the buttom is incorrect?!??! Any on can help me? Link to comment Share on other sites More sharing options...
rescuestat Posted February 2, 2010 Share Posted February 2, 2010 Hello, I install a contribut that search by the attributes... i make some changes to creat a box with search fields, in the firefox works very well, but in the IE the buttom "search" dont do nathing... The code is "<?php echo tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH); ?>" i thing it is correct... maybe the position of the buttom is incorrect?!??! Any on can help me? Your tep_image_button is correct, is the button and the <a href> link inside of the </form> tags? Link to comment Share on other sites More sharing options...
pilon Posted February 2, 2010 Author Share Posted February 2, 2010 Hello, I thing so, because in the firefox works well.... the all code is <?php $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if ($number_of_rows = tep_db_num_rows($manufacturers_query)) { ?> <?php if ( (!strstr($_SERVER['PHP_SELF'],'checkout.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and (!strstr($_SERVER['PHP_SELF'],'shopping_cart.php')) and (!strstr($_SERVER['PHP_SELF'],'advanced_search.php')) and !tep_session_is_registered('customer_id') ) { ?> <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get"') ?> <table align="center" border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td align="center"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="infoBoxContents" valign="middle" colspan="0"> <table border="0" width="50%" cellspacing="5" cellpadding="0" align="center"> <tr> <td class="infoBoxContents" valign="top" colspan="3"></td> </tr> <tr> <td class="categor">Marcas</td> <td class="infoBoxContents" valign="top" colspan="3"> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS); // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); } while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), '" size="' . MAX_MANUFACTURERS_LIST . '" style="width:120; height:19px; background-color:#ffffff; border-style:solid; border-width:1px; border-color:#ABABAB "') . tep_hide_session_id()); new infoBox($info_box_contents); ?></td> </tr> <tr> <td class="infoBoxContents" valign="top" colspan="3"><?php // **************************************************************************************** // **************************************************************************************** // This code has been added in order to make the attributes on products searchable by selecting // the attribute through a drop down list box, if you notice on your advanced_search.php page // that a select box is empty it means there are no option values for that option // Please leave these commented lines in this file. This contribution was built by Adam, // If it helps you, then you can help me by donating through paypal, my email address is: [email protected] $attributes_query = tep_db_query("select * from " . TABLE_PRODUCTS_OPTIONS . " where language_id = '" . (int)$languages_id . "'"); while ($attributes = tep_db_fetch_array($attributes_query)) {?> <tr> <td class="categor"><?php echo $attributes["products_options_name"]; ?></td> <?php $option_values_query = tep_db_query('select pv.products_options_values_id as id, pv.products_options_values_name as text from ('. TABLE_PRODUCTS_OPTIONS_VALUES . ' pv, '. TABLE_PRODUCTS_OPTIONS .' po) join ' . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . ' popv on (pv.products_options_values_id = popv.products_options_values_id) where popv.products_options_id = po.products_options_id and popv.products_options_id =' . $attributes['products_options_id'] . ' and po.language_id ='. (int)$languages_id . ' group by pv.products_options_values_id, products_options_values_name'); $option_values_list = array(); // MySQL5 Fix echo '<td class="fieldValue">'; $count = 0; $option_values_list[$count] = array('id' => '', 'text' => ''); while ($option_values = tep_db_fetch_array($option_values_query)) { $option_values_list[++$count] = $option_values; } echo tep_draw_pull_down_menu($attributes['products_options_name'], $option_values_list); ?> </td> </tr><?php } //// End of code added to advanced_search.php ///////////////////////////////////////////// // **************************************************************************************** // **************************************************************************************** ?> <tr> <td><?php echo tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH); ?></td> </tr> <tr> <td class="infoBoxContents" valign="top" colspan="3"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <?php } }?> Link to comment Share on other sites More sharing options...
rescuestat Posted February 2, 2010 Share Posted February 2, 2010 Hello, I thing so, because in the firefox works well.... the all code is check your tep_draw_form in line 8, you have a " (double quote) in with get... Change.... <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get"') ?> To. <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?> See what that does for you...without your search function can't verify it, but after that change the form submits. Firefox is a little more forgiving of coding errors then IE. Frank Link to comment Share on other sites More sharing options...
pilon Posted February 2, 2010 Author Share Posted February 2, 2010 Hello, Thank you very much, i thing you will help me ;) The line you send to me is the same?!?!?!?! dont have any modification... Link to comment Share on other sites More sharing options...
pilon Posted February 3, 2010 Author Share Posted February 3, 2010 Hello?!?! any help please?!?!? Link to comment Share on other sites More sharing options...
pilon Posted February 3, 2010 Author Share Posted February 3, 2010 The problem is here, <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?><table border="0" width="50%" cellspacing="5" cellpadding="0" align="center"> <tr> <td class="infoBoxContents" valign="top" colspan="3"></td> </tr> <tr> <td class="categor">Marcas</td> <td class="infoBoxContents" valign="top" colspan="3"> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS); // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); } while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } $info_box_contents = array(); //$info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), ''), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), '" size="' . MAX_MANUFACTURERS_LIST . '" style="width:120; height:19px; background-color:#ffffff; border-style:solid; border-width:1px; border-color:#ABABAB "') . tep_hide_session_id()); new infoBox($info_box_contents); ?></td> if i move the "<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?>" to the end of the manufacturers search like this, they works but dont search by the manufacturers... <table border="0" width="50%" cellspacing="5" cellpadding="0" align="center"> <tr> <td class="infoBoxContents" valign="top" colspan="3"></td> </tr> <tr> <td class="categor">Marcas</td> <td class="infoBoxContents" valign="top" colspan="3"> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS); // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); } while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } $info_box_contents = array(); //$info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), ''), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), '" size="' . MAX_MANUFACTURERS_LIST . '" style="width:120; height:19px; background-color:#ffffff; border-style:solid; border-width:1px; border-color:#ABABAB "') . tep_hide_session_id()); new infoBox($info_box_contents); ?></td> <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?> Link to comment Share on other sites More sharing options...
pilon Posted February 3, 2010 Author Share Posted February 3, 2010 problem solved ;) I remove the manufacturers form this line "$info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get')," Thanks Frank Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.