Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 1st, 2014, 12:24 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default Search box problem

Hey again Eric.

I've got an issue with the simple search box. It's not searching just by product name apparently. It must be searching by tags and/or keywords etc. because if you type in say "putter" it gives results for everything. the category searches are working fine. can I limit the simple search to JUST product name or product title?

This seems to be a problem with one datafeed from one company. But I was able to work through it on the category searches by adding products just by product name and not by keyword. I'm guessing the search box is using more than just product name.

See results for a simple search of "putters" http://saveongolf.net/store/search/?word=putters
  #2  
Old May 1st, 2014, 01:41 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

Just wanted to add that I'm having this issue with both the simple search and search by merchant. It's the Edwin Watts golf datafeed that is having a problem. As Stefan knows that datafeed has the same tags almost for every item. We got around that by me creating product categories by just using the product name in the search and nothing else. Can I do that with the search boxes? If you search for say "putters" and you'll see many Edwin Watts Golf links for things that aren't putters. If you click on details of any product and look at the detail page result, at the bottom is a list of tags. It won't just say putters, or wilson putter, it will say Callaway, Drivers, fairway woods, Mizuno. etc. etc. None of which have anything to do with the search, but since all their products have this same group of tags they all say putter so bags and balls etc will show up under a search of "putter". Can I limit the search to JUST THE TITLE/Product name and nothing in the description or tags for both the simple search box and the merchant search box? Thanks.
  #3  
Old May 1st, 2014, 01:44 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

If none of the above is possible...can I somehow have those two search boxes NOT show results from Edwin Watts golf? I still want all the products in the categories, but if there is no other way than it would be ok to not show Edwin Watts in the search results as they are the only one that I know of that is causing a problem. But it would be preferable to do it some other way. Thanks again!!! I have faith in you guys!
  #4  
Old May 1st, 2014, 02:52 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

To search by product name, in your Simple Search > Text module change this:

Code:
  [search.word onfocus='wash(this);' onblur='checkWash(this);' value='Refine search...']
To this:

Code:
  [search.name onfocus='wash(this);' onblur='checkWash(this);' value='Refine search...']
Eric
  #5  
Old May 1st, 2014, 03:11 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

That worked pretty well.. thanks much.

How about in the search by merchant? Here is the code. Can I do that here too?

PHP Code:
<?php
function dfr_get_merchants() {
    global 
$wpdb;
    
$merchants $wpdb->get_results("SELECT merchant, merchant_id FROM ".$wpdb->prefix."dfr_shop_products WHERE network NOT LIKE '%Coupons%' GROUP BY merchant");
    
$html '<option value="">Select all merchants</option>';
    foreach (
$merchants as $k => $v) {
        if (
trim($v->merchant) != "") {
            
$selected = (strip_tags($_GET['merchant_id'])==$v->merchant_id) ? ' selected="selected"' '';
            
$html .= '<option value="'.$v->merchant_id.'"'.$selected.'>'.$v->merchant.'</option>';
        }
    }
    return 
$html;
}
?>

[search.form]
<div class="store_search_form">
  <p class="keyword">
    <label for="word">Keyword</label> [search.word]
  </p>
  <p class="merchant">
    <select name="merchant_id">
      <?php echo dfr_get_merchants(); ?>
    </select>
  </p>
  <p class="price">
   <label for="price">Price</label> [search.selectprice options='any, under $50(-50), $50 - $100, $100 - $200, $200 - $350, more than 350 (350+)']
  </p>
  <p class="button">[search.submit title='Find it!']</p>
</div>
[/search.form]
  #6  
Old May 1st, 2014, 05:38 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

Hey guys. Any chance you could take a look at this tonight? I know I've asked a lot today but this would get me in a good place if I could get this done. The site is getting a little air time on a local radio station in Florida and I'd like to have it working. thanks much.
  #7  
Old May 1st, 2014, 06:04 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

From what I can tell, it should work.

Have you tried it yet?

Eric
  #8  
Old May 1st, 2014, 06:22 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

not sure what you are saying Eric? Do you mean the first fix? yes I did that and it worked but just for the simple search box. The Merchant search is still having issues. That's why I posted the code above.
  #9  
Old May 1st, 2014, 06:25 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by yankeestonk View Post
The Merchant search is still having issues.
What is the issue?

Eric
  #10  
Old May 1st, 2014, 06:27 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

This is the search result for "putter" from the Merchant search fliter.

http://saveongolf.net/store/search/?...ant_id=&price=
  #11  
Old May 1st, 2014, 06:28 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

The Merchant Search Filter is not just searching the title but the content and tags etc. So it's giving results for just about everything rather than just "putters". (or whatever the search term is.)
  #12  
Old May 1st, 2014, 06:29 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

that's why I posted the code for the Merchant search filter above hoping you could give me a fix to narrow the search down to just the name/title.
  #13  
Old May 1st, 2014, 06:29 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

In the code above (post #5), you need to change this:

Code:
<label for="word">Keyword</label> [search.word]
To this:

Code:
<label for="word">Keyword</label> [search.name]
Eric
  #14  
Old May 1st, 2014, 06:37 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

That did it! Thanks very much Eric.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with search of some keywords davidyanez Questions 3 August 4th, 2013 11:03 PM
Search Problem ureachmore Questions 1 November 2nd, 2012 10:29 PM
Product Search Problem macfink Questions 2 April 15th, 2011 08:32 AM
Problem with keyword search? ayorofrance Problems 1 January 17th, 2011 09:04 AM


All times are GMT -5. The time now is 01:16 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.