Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
    francis tisoy
  1. botyoko

    Sort Products By Dropdown

    Hello, Need help in integrating Sort Products By Dropdown in advanced_search_result.php I have edited the code it works fine if you are not using the advanced search option of the advanced_search.php But when you are specifiying price, date, etc.. on the criteria fields its not working anymore. Any help is highly appreciated. Below is my code: // Additional Products Sort echo '<tr><td align="right" class="main">' . tep_draw_form('sort', FILENAME_ADVANCED_SEARCH_RESULT, 'get') . '<b>Sort by:</b> '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); } else { echo tep_draw_hidden_field('keywords',$keywords); } $sort_list = array('2a' => 'Products Model A to Z', '2d' => 'Products Model Z to A', '4a' => 'Price Low to High', '4d' => 'Price High to Low'); foreach($sort_list as $id=>$text) { $sort_range[] = array('id' => $id, 'text' => $text); } echo tep_draw_pull_down_menu('sort', $sort_range, '', 'onchange="this.form.submit()"'); echo '</form></td></tr>' . "\n"; // End Additional Products Sort