Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Quick Find


pmakulski

Recommended Posts

Posted

I would like to have my quick find always search in product descriptions.

By default the quick find looks in Product Names only.

 

The advanced search has the option, and when it is checked, the generated URL looks like this:

advanced_search_result.php?keywords=Bob&search_in_description=1

 

The quick find URL looks like this:

advanced_search_result.php?keywords=Bob

 

I've looked in search.php but I can't figure out where the URL phrase is generated.

Posted

OK, never mind. Figured it out myself.

 

FYI:

 

in includes\boxes\search.php add this to the 'text' =>

 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . tep_draw_checkbox_field('search_in_description', '1')

in includes\languages\english.php

define('BOX_SEARCH_TEXT', 'Search in Titles and Authors.<br>Check the box to search in Descriptions too.');

 

See it in action: store.tac-rscds.org

Archived

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

×
×
  • Create New...