Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search in product description


Kurre

Recommended Posts

  • 2 months later...

I too have noticed the search function at the header is not capable of searching in descriptions. After looking at the code in cm_header_search.php, I added the following line and it works!

      $search_box .=  tep_draw_hidden_field('search_in_description', '1');

 

Quote

      $search_box = '<div class="searchbox-margin">';
      $search_box .= tep_draw_form('quick_find', tep_href_link('advanced_search_result.php', '', $request_type, false), 'get', 'class="form-horizontal"');
      $search_box .= '  <div class="input-group">' .
                          tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . '<span class="input-group-btn"><button type="submit" class="btn btn-info"><i class="fa fa-search"></i></button></span>' .
                      '  </div>';

      $search_box .=  tep_draw_hidden_field('search_in_description', '1');
      $search_box .=  tep_hide_session_id() . '</form>';
      $search_box .= '</div>';

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...