View Single Post
  #1  
Old February 7th, 2015, 07:48 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default search results problems

I've noticed that in order to find a product from the main search bar of my store you really have to know what the product is called. I'm trying to broaden the results a bit but not sure how to do it without going to far in the other direction. I'm hoping if I give you an example of the problem you could give me a suggestion?

If someone was looking for all results for golf putters, and wanted a particular and popular brand, one might search for "odyssey putter" or "odyssey putters". If you did either of those you'd get zero results.

However if you search for "odyssey" or "putter" or "putters" you get plenty of results. I checked and many results show the words "odyssey" and "putter" or "putters" in the title. So I don't know why when you type both words you get no results.

here is the code I think you might need to see under the search category.

HTML Code:
<!-- Search Heading -->
<h2>Your Search Results:</h2>
<!-- /Search Heading -->


<!-- Search Fields -->
<ul>
  <?php if (@$_GET['word']){ ?><li><b>Word: </b>[store.get param="word"]</li><?php } ?>
  <?php if (@$_GET['merchant']){ ?><li><b>Merchant: </b>[store.get param="merchant"]</li><?php } ?>
  <?php if (@$_GET['tags']){ ?><li><b>Tags: </b>[store.get param="tags"]</li><?php } ?>
  <?php if (@$_GET['price']){ ?><li><b>Price: </b>[store.get param="price"]</li><?php } ?>
</ul>
<!-- /Search Fields -->


<!-- Pagination Links (Top) -->
<div class="pgr">

could it be as simple as changing "word" to "words"?

This is the code for the search bar located in Wordpress:

HTML Code:
<form role="search" method="get" id="searchform" class="search-form" action="/store/search/">
    <div><label class="screen-reader-text" for="s">Search for:</label>
   <input class="search-field" type="text" name="name" id="s" value="<?php echo esc_attr( @$_GET['word'] ); ?>">
    <input class="search-submit" type="submit" id="searchsubmit" value="Search"><input name="saleprice" value="1-" type="checkbox"><strong style="color:#fff;margin-top: 5px; display: inline-table; margin-left: 5px; float: left;">On sale</strong>
</div></form>
http://saveongolf.net

Thanks,
ken

Last edited by yankeestonk : February 7th, 2015 at 07:58 AM.