Jump to content
Sign in to follow this  
Kurre

Search in product description

Recommended Posts

I use 2.3.4.1 CE BS version

How can i make the menu box quick search search in product description too ?

Share this post


Link to post
Share on other sites
Posted (edited)
14 minutes ago, Hotclutch said:

 

Yes that worked!

Thank you!

Edited by Kurre

Share this post


Link to post
Share on other sites

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>';

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×