View Single Post
  #1  
Old 04-09-2015, 02:24 PM
  DanielleHoyt's Avatar 
DanielleHoyt DanielleHoyt is offline
 

Newbie
  
Join Date: Dec 2013
Location: California, US
Posts: 9
 

Default Predictive Search Module Search Results

Hi everyone. I use the predictive search module in Busy Kitchen and by default it pulls from the product description. This is a major issue, and it shows too many results that are not relevant.

I've been stuck for days trying to get this predictive search module to not pull results from product descriptions.

I edited busy_kitchen/customer/main/search_result.tpl

PHP Code:
['posted_data[by_shortdescr]'false],
  [
'posted_data[by_fulldescr]'false], 

PHP Code:
<td width="5"><input type="checkbox" id="posted_data_by_shortdescr" name="posted_data[by_shortdescr]"{if $search_prefilled eq "" or $search_prefilled.by_shortdescrdisabled="disabled"{/if} /></td>
  <
td nowrap="nowrap"><label for="posted_data_by_shortdescr">{$lng.lbl_short_description}</label>&nbsp;&nbsp;</td>


  <
td width="5"><input type="checkbox" id="posted_data_by_fulldescr" name="posted_data[by_fulldescr]"{if $search_prefilled eq "" or $search_prefilled.by_fulldescrdisabled="disabled"{/if} /></td>
  <
td nowrap="nowrap"><label for="posted_data_by_fulldescr">{$lng.lbl_det_description}</label>&nbsp;&nbsp;</td

I also edited busy_kitchen/customer/search.tpl

PHP Code:
<input type="hidden" name="posted_data[by_descr]" value="N" /> 

This is probably way easier than I am making it. I am sort of a noob when it comes to php so I was hoping one of you awesome individuals could help me!
Attached Files
File Type: tpl search.tpl (1.2 KB, 179 views)
File Type: tpl search_result.tpl (10.7 KB, 175 views)
__________________
X-Cart 4.6.0
Reply With Quote