Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search alteration


updmike

Recommended Posts

Hi Everyone,

 

I am looking for a way to make the search that is part of the include column to search the description similar to that on the advanced search page. I do not need to include any of the other advance search options, only to have the text field in the include look through the product descriptions and retrieve matches.

 

I am hoping it is a simple change. I compared both searches and the answer did not catch my eye at all. Any suggestions on where to start?

 

Thanks so much... Mikey

Link to comment
Share on other sites

In includes/boxes/search.php, as part of setting up the $info_box_contents[] variable there is a line that begins

'text' => tep_draw_input_field('keywords', '', 'size .......

Insert this code

tep_draw_hidden_field('search_in_description','1') .

so that the line now begins

'text' => tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size .......

Regards, Wizzud

"It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."

Link to comment
Share on other sites

Are you truly a wizzard? I think soo...

 

I think i may be using an older snapshot but I took today's snapshot of search.php and used that in combo with your comments..

 

It worked amazing.. Thanks... :lol:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...