Jump to content
Sign in to follow this  
WillemB

Search Enhancement by Paul Whiter... MS2 ???

Recommended Posts

Hi,

 

First I would like to say thanks for the mod - it's been very useful. I'm not a programmer myself - I specialise in SEO for our clients and the way Oscommerce indexes content made me choose and recommend it over all the other programs out there.

 

I have noticed though with this mod that there is an abnormality that happens - due I think to the 's' being stripped out.

 

If you search for two keywords together, and the second keyword has an 's' (i.e. paintball guns) - the search returns no products. This is strange as 'paintball gun' does return results. The initial search 'paintball guns' is replaced by the product not found page and paintball+gun in the search bar - if you search on this again, you still get the products not found page.

 

There is also this line in that page -

 

Your search - - did not match any products

 

So it seems that stripping out the 's' has stopped searches on multiple keywords when the last one has an 's'.

 

I'm going to try removing this feature now to see if that makes any difference, but if anyone else has some ideas I would be very interested.

 

I also posted on the tips and suggestion - if anyone would be interested in having a chat about improving the search facilities on Oscommerce then let me know.

 

http://forums.oscommerce.com/index.php?sho...=0entry336438

 

Best,

 

Kino

Share this post


Link to post
Share on other sites

WillemB,

 

Like I say - I'm not programmer - so could you possibly put up the code for this mod without the 's'! I'm not having much luck here removing it. :-)

 

TIA

 

Kino

Share this post


Link to post
Share on other sites

Ah found out a way of making it work:

 

Change this line:

 

if($pwstr_check == 's'){

 

to:

 

if($pwstr_check == ''){

 

 

I'm sure this isn't very pretty programatically but it seems to do the trick ;)

 

Thanks,

 

Kino

Share this post


Link to post
Share on other sites

Fine tuning :)

 

Ok - when the screen comes up for a suggested word, i.e. did you mean 'keyword' there is a bug.

 

If you have typed in 2 keywords into the search, i.e. modell 98 - and I have suggested that any searches for 'modell 98' be directed to 'model 98' - sure enough the screen comes up and suggests - Did you mean 'Model 98'

 

However, when you click this link, it puts model+98 into the search bar - and obviously the search treats that as a search for model+98 as one word - and finds nothing.

 

Is there anyway of removing this addition of the '+' into the search bar in between the keywords and keeping the space. At the moment if any of your users are using 2 words together that are mispelt (even if just one is) then they will hit two screens before being told this product doesn't exist :)

 

Any ideas anyone?

 

Best,

 

Kino

Share this post


Link to post
Share on other sites

Hi all,

 

 

Still haven't had any luck with this bug - aren't you all having the same trouble with your copies?

 

Try typing in two search terms - one spelt wrong (where you have a replacement word in the keyword replacement list). The system will suggest one of the words is wrong (highlighting it) and then put a '+' into the search box. These '+''s then stop the product being found as 'keyword + keyword' or 'keyword+keyword' both come back with nothing or product not found. Basically if your customers are looking for more than one keyword then you are in trouble if they have spelt them wrong.

 

I am getting a fair few '+''s in my list of keywords that people have typed in - are none of you lot getting that? Each one of these represents a customer who has searched for a product and ended up not finding anything at your store.

 

Anyway - if anyone has any ideas they would be appreciated. At the moment I have changed this line:

 

3) Try using fewer keywords - in the error message

 

To:

 

3) Try using one keyword

 

To try and steer the flow back in the right direction but it's not the best solution :(

 

Best,

 

Kino

Share this post


Link to post
Share on other sites

I think it has to be in this part of the code:

 

// Search enhancement mod start

if(isset($_GET['keywords']) && $_GET['keywords'] != ''){
if(!isset($_GET['s'])){
      $pwstr_check = strtolower(substr($_GET['keywords'], strlen($_GET['keywords'])-1, strlen($_GET['keywords'])));
      if($pwstr_check == 's'){
              $pwstr_replace = substr($_GET['keywords'], 0, strlen($_GET['keywords'])-1);
              header('location: ' . tep_href_link( FILENAME_ADVANCED_SEARCH_RESULT , 'search_in_description=1&s=1&keywords=' . urlencode($pwstr_replace) . '' ));
              exit;
      }
       } 

      $pw_keywords = explode(' ',stripslashes(strtolower($_GET['keywords'])));
      $pw_boldwords = $pw_keywords;
      $sql_words = tep_db_query("SELECT * FROM searchword_swap");
      $pw_replacement = '';
      while ($sql_words_result = tep_db_fetch_array($sql_words)) {
          if(stripslashes(strtolower($_GET['keywords'])) == stripslashes(strtolower($sql_words_result['sws_word']))){
              $pw_replacement = stripslashes($sql_words_result['sws_replacement']);
              $pw_link_text = '<b><i>' . stripslashes($sql_words_result['sws_replacement']) . '</i></b>';
              $pw_phrase = 1;
              $pw_mispell = 1;
              break;
          }
          for($i=0; $i<sizeof($pw_keywords); $i++){
              if($pw_keywords[$i]  == stripslashes(strtolower($sql_words_result['sws_word']))){
                  $pw_keywords[$i]  = stripslashes($sql_words_result['sws_replacement']);
                  $pw_boldwords[$i] = '<b><i>' . stripslashes($sql_words_result['sws_replacement']) . '</i></b>';
                  $pw_mispell = 1;
                  break;
              }
          }	
      }
      if(!isset($pw_phrase)){
          for($i=0; $i<sizeof($pw_keywords); $i++){
              $pw_replacement .= $pw_keywords[$i]. ' ';
              $pw_link_text   .= $pw_boldwords[$i]. ' ';	
          }
      }
      
      $pw_replacement = trim($pw_replacement);
      $pw_link_text   = trim($pw_link_text);
      $pw_string      = '<br><span class="main"><font color="red">' . TEXT_REPLACEMENT_SUGGESTION . '</font><a href="' . tep_href_link( FILENAME_ADVANCED_SEARCH_RESULT , 'keywords=' . urlencode($pw_replacement) . '&search_in_description=1' ) . '">' . $pw_link_text . '</a></span><br><br>';
}
// Search enhancement mod end

 

I looked at the '+'s in these lines:

 

for($i=0; $i<sizeof($pw_keywords); $i++){

 

for($i=0; $i<sizeof($pw_keywords); $i++){

 

And tried taking them out - just got a parse error. I'm not a PHP guy though so I may be completely off in the wrong direction?

 

TIA

 

Kino

Share this post


Link to post
Share on other sites

Anyone know how to add a filter feature in the search file? I wanted to be able to put

 

sedans NOT ford

 

To filter my search results from Ford. Anybody have an idea how to go about this?

Share this post


Link to post
Share on other sites

I am having some problems with the admin/stats_keywords.php file

 

First I get this:

 

Parse error: parse error, unexpected T_REQUIRE in /osc/admin/stats_keywords.php on line 1

 

Somehow I got that fixed, but got this error:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /osc/admin/includes/functions/database.php:13) in /osc/admin/includes/functions/database.php on line 13

 

 

Am using PHP version 4.3.5

Here is the out of the box file for admin/stats_keywords.php

 

<?php
/*
 $Id: stats_keywords.php,v 0.90 10/03/2002 03:15:00 Exp $
by Cheng	


 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');
 
 if(isset($_GET['txtWord']) && $_GET['txtWord'] != '' && isset($_GET['txtReplacement']) && $_GET['txtReplacement'] != '' && !isset($_GET['updateword'])){
   $newword_sql = "INSERT INTO searchword_swap (sws_word, sws_replacement)VALUES('" . addslashes($_GET['txtWord']) . "', '" . addslashes($_GET['txtReplacement']) . "' )";
   $result = tep_db_query($newword_sql);
   header('location: ' . tep_href_link('stats_keywords.php', 'action=' . BUTTON_VIEW_WORD_LIST . ''));
   exit;    
 }
 
 if(isset($_GET['removeword']) && isset($_GET['delete'])){
  $word_delete_sql = "DELETE FROM searchword_swap WHERE sws_id = " . $_GET['delete'];
  $result = tep_db_query($word_delete_sql);
  header('location: ' . tep_href_link('stats_keywords.php', 'action=' . BUTTON_VIEW_WORD_LIST . ''));        
 }

 if(isset($_GET['editword']) && isset($_GET['link'])){
  $word_select_sql = "SELECT * FROM searchword_swap WHERE sws_id = " . $_GET['edit'];
  $result = tep_db_query($word_select_sql);
  $word_select_result = tep_db_fetch_array($result);      
 } 

 if(isset($_GET['editword']) && isset($_GET['updateword'])){
  $word_update_sql = "UPDATE searchword_swap SET sws_word= '" . addslashes($_GET['txtWord']) . "', sws_replacement = '" . addslashes($_GET['txtReplacement']) . "' WHERE  sws_id = " . $_GET['id'];
  $result = tep_db_query($word_update_sql);
  header('location: ' . tep_href_link('stats_keywords.php', 'action=' . BUTTON_VIEW_WORD_LIST . ''));        
 }  
   
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top">
<table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1"  class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
   <td valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr>
   <td class="pageHeading"><?php echo HEADING_TITLE ?></td>
   <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
 </tr><tr>
   <td class="main" colspan="2">
<?php

if ($_GET['action'] == 'Delete') {
tep_db_query("delete from search_queries_sorted");
} // delete db   	 

if ($_GET['update'] == BUTTON_UPDATE_WORD_LIST) {
   $sql_q = tep_db_query("SELECT DISTINCT search_text, COUNT(*) AS ct FROM search_queries GROUP BY search_text");

      while ($sql_q_result = tep_db_fetch_array($sql_q)) {                            
   $update_q = tep_db_query("select search_text, search_count from search_queries_sorted where search_text = '" . $sql_q_result['search_text'] . "'");
          $update_q_result = tep_db_fetch_array($update_q);
          $count = $sql_q_result['ct'] + $update_q_result['search_count'];

            if ($update_q_result['search_count'] != '') {
        tep_db_query("update search_queries_sorted set search_count = '" . $count . "' where search_text = '" . $sql_q_result['search_text'] . "'");
     } else {
               tep_db_query("insert into search_queries_sorted (search_text, search_count) values ('" . 
  $sql_q_result['search_text'] . "'," . $count . ")");
     } // search_count

          tep_db_query("delete from search_queries");
       } // while
} // updatedb

?>
<?php if(isset($_GET['action']) && $_GET['action']== BUTTON_VIEW_WORD_LIST)
//switch for view word list
{  echo tep_draw_form('addwords', 'stats_keywords.php', '', 'get');

?>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<?php if(isset($_GET['add'])) { ?>
<tr><td colspan="4">
<table border="1" cellpadding="0" cellspacing="1" width="100%" bgcolour="gray"><tr><td>
 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="dataTableRow">
   <td class="main" nowrap><br><?php echo WORD_ENTRY_ORIGINAL ?> 
   <input type="text" name="txtWord" value="<?php if(isset($word_select_result['sws_word'])){echo stripslashes($word_select_result['sws_word']);} ?>" size="12"> 
   <?php echo WORD_ENTRY_REPLACEMENT ?>
   <input type="text" name="txtReplacement" value="<?php if(isset($word_select_result['sws_replacement'])){echo stripslashes($word_select_result['sws_replacement']);} ?>" size="12"></td>
   <?php if(isset($word_select_result['sws_id'])){echo '<input type="hidden" name="id" value="' . $word_select_result['sws_id'] . '">';} ?>
 </tr>
 <tr class="dataTableRow">
   <td class="main"><?php  if(isset($_GET['editword']) && isset($_GET['link'])){ ?>
   <input type="submit" name="editword" value="<?php echo BUTTON_EDIT_WORD ?>">
   <input type="hidden" name="updateword" value="1">
   <br><br><?php }
   else { ?>
   <input type="submit" name="newword" value="<?php echo BUTTON_ADD_WORD ?>"><br><br>
   <?php } ?>
   </td>
 </tr>
 </table></td></tr></table>
 </d></tr>  
<?php } ?>  
 <tr class="dataTableHeadingRow">
   <td class="dataTableHeadingContent" width="40%"><?php echo WORD_ENTRY_ORIGINAL ?></td>
   <td class="dataTableHeadingContent" colspan="3"><?php echo WORD_ENTRY_REPLACEMENT ?></td>
 </tr>
<?php

$pw_word_sql = "SELECT * FROM searchword_swap ORDER BY sws_word ASC";
$pw_words = tep_db_query($pw_word_sql);
   while ($pw_words_result = tep_db_fetch_array($pw_words)) { ?>
 <tr class="dataTableRow">
   <td class="dataTableContent"><?php echo stripslashes($pw_words_result['sws_word']); ?></td>  
   <td class="dataTableContent"><?php echo stripslashes($pw_words_result['sws_replacement']); ?></td>
   <td class="dataTableHeadingContent"><a href="<?php echo tep_href_link('stats_keywords.php', 'editword=1&link=1&add=1&action=' . BUTTON_VIEW_WORD_LIST . '&edit=' . $pw_words_result['sws_id']); ?>"><u><?php echo LINK_EDIT ?></u></a></td>
   <td class="dataTableHeadingContent"><a href="<?php echo tep_href_link('stats_keywords.php', 'removeword=1&delete=' . $pw_words_result['sws_id']); ?>"><u><?php echo LINK_DELETE ?></u></a></td>
 </tr>
<?php    } // while 
?>
 <tr>
   <td colspan="4" class="main" align="right"><br><input type="submit" value="New Entry" name="add" method="post" />
   <input type="hidden" name="action" value="<?php echo BUTTON_VIEW_WORD_LIST ?>"></td>
 </tr>
</table></form>
   <?php } //end 'if' switch for view word list
   
   
   
   if(!isset($_GET['action']) && $_GET['action'] != BUTTON_VIEW_WORD_LIST){
  	 ?>
  	 <table border="0" cellpadding="2" cellspacing="0" width="100%">
 <tr class="dataTableHeadingRow">
   <td class="dataTableHeadingContent" width="40%"><?php echo KEYWORD_TITLE ?></td>
   <td class="dataTableHeadingContent"><?php echo KEYWORD_TITLE2 ?></td>
 </tr>
<?php

switch($_GET['sortorder']){
 case BUTTON_SORT_NAME:
   $pw_sql = "SELECT search_text, search_count FROM search_queries_sorted ORDER BY search_text ASC";
 break;
 case BUTTON_SORT_TOTAL:
   $pw_sql = "SELECT search_text, search_count FROM search_queries_sorted ORDER BY search_count DESC";
 break;
 default:
   $pw_sql = "SELECT search_text, search_count FROM search_queries_sorted ORDER BY search_text ASC";
 break;
}

$sql_q = tep_db_query($pw_sql);
   while ($sql_q_result = tep_db_fetch_array($sql_q)) { ?>
 <tr class="dataTableRow"  onmouseover="this.className='dataTableRowOver';this.style.cursor='hand'" onmouseout="this.className='dataTableRow'" onclick="document.location.href='<?php echo tep_catalog_href_link( 'advanced_search_result.php', 'keywords=' . urlencode($sql_q_result['search_text']). '&search_in_description=1' ); ?>'" >
   <td class="dataTableContent"><a target="_blank" href="<?php echo tep_catalog_href_link( 'advanced_search_result.php', 'keywords=' . urlencode($sql_q_result['search_text']). '&search_in_description=1' ); ?>"><?php echo $sql_q_result['search_text']; ?></a></td>  
   <td class="dataTableContent"><?php echo $sql_q_result['search_count']; ?></td>
 </tr>
<?php    } // while 
?>
   </td></tr></table>
  	 
    <?php } ?>
   </td>
 </tr>
</table>
   </td>
<!-- body_eof //-->
<!-- right_column_bof //-->
<td valign="top" width="25%">
<?php echo tep_draw_form('delete', 'stats_keywords.php', '', 'get'); ?>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>
   <td class="pageHeading" align="right"> </td>
 </tr><tr>
   <td>
<?php
   $heading = array();
   $contents = array();

   $heading[]  = array('text'  => '<b>' . SIDEBAR_HEADING . '</b>');

   $contents[] = array('text'  => '<br>' . SIDEBAR_INFO_1);
   $contents[] = array('text'  => '<input type="submit" name="update" value="' . BUTTON_UPDATE_WORD_LIST . '">');
   $contents[] = array('text'  =>  tep_draw_separator());
   $contents[] = array('text'  => '<br><input type="submit" name="sortorder" value="' . BUTTON_SORT_NAME . '"><br><input type="submit" name="sortorder" value="' . BUTTON_SORT_TOTAL . '">');
   $contents[] = array('text'  =>  tep_draw_separator());
   $contents[] = array('text'  => '<br>' . SIDEBAR_INFO_2);
   $contents[] = array('text'  => '<input type="submit" value="' . BUTTON_DELETE . '" name="action">');
   $contents[] = array('text'  =>  tep_draw_separator());
   $contents[] = array('text'  => SIDEBAR_INFO_3);
   $contents[] = array('text'  => '<input type="submit" name="action" value="' . BUTTON_VIEW_WORD_LIST . '">');

   
 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {

   $box = new box;
   echo $box->infoBox($heading, $contents);
 } ?>    
</td></tr></table></form>
</td>
 </tr>
</table>  
<!-- right_column_eof //-->
           
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>         
</html>       
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Thanks in advance!

 

Wendy

Share this post


Link to post
Share on other sites

This is an awesome contribution - Much thanks to Paul for creating it - and everyone who contributed to making it MS2 compatible.

 

I would like to add onto this search - but am not sure how to go about doing it. I don't think it would be to intensive. I plan to have a huge product listing. When someone searches for a keyword and the result yields a huge number of products - I would like to have a list of all categories that their keyword appears in. Something along of the lines of "Your search resuted in 569 items. To Narrow down your search choose a category below:" Then it would go on to list all categories that their keyword appears in. If they click one of those categories - it can perform another search of their keyword just within that specific category. :) The goal would be to keep narrowing down the search until it's a resonable size to browse!

 

If anyone has any ideas of how to impliment such a thing - please let me know. Thanks!

 

dilirum :D

Share this post


Link to post
Share on other sites

The other problem with this contribution is that it doesn't search for words, but for every word containing the characters you are searching for. Has anyone else noticed this problem? Any ideas for a fix?

 

For example, If I search for "ant" I'll also get every product with the words "anti" in the description. What if the customer just wants ant products??

Share this post


Link to post
Share on other sites
Hi,

 

First I would like to say thanks for the mod - it's been very useful. I'm not a programmer myself - I specialise in SEO for our clients and the way Oscommerce indexes content made me choose and recommend it over all the other programs out there.

 

I have noticed though with this mod that there is an abnormality that happens - due I think to the 's' being stripped out.

 

If you search for two keywords together, and the second keyword has an 's' (i.e. paintball guns) - the search returns no products. This is strange as 'paintball gun' does return results. The initial search 'paintball guns' is replaced by the product not found page and paintball+gun in the search bar - if you search on this again, you still get the products not found page.

 

There is also this line in that page -

 

Your search - - did not match any products

 

So it seems that stripping out the 's' has stopped searches on multiple keywords when the last one has an 's'.

 

I'm going to try removing this feature now to see if that makes any difference, but if anyone else has some ideas I would be very interested.

 

I also posted on the tips and suggestion - if anyone would be interested in having a chat about improving the search facilities on Oscommerce then let me know.

 

http://forums.oscommerce.com/index.php?sho...=0entry336438

 

Best,

 

Kino

Hello,

 

In the line:

 

header('location: ' . tep_href_link( FILENAME_ADVANCED_SEARCH_RESULT , 'search_in_description=1&s=1&keywords=' . urlencode($pwstr_replace) . '' ));

 

Try replacing urlencode with rawurlencode - it worked for my site.

 

Stephen

Share this post


Link to post
Share on other sites

Hi all

 

can anybody help please????

 

I just installed the contrib - running fine though...but I would like to know if there is a way in admin to choose or to multi-choose keywords for the replacement part.

 

Means:

 

you hit the button update from raw data

 

and you'll get the list of all the keywords->great

 

and then I hit the button View word/phrase list

 

Now: do I have to make me some notes of all the wrong keywords an enter them all manually? To correct them the step by step on the slow tour?

 

Or is there a failure on my installation?

 

Please help...

Regards

Kai

Share this post


Link to post
Share on other sites

Anyone found a solution to the foolowing error:

 

1064 - You have an error in your SQL syntax near 't '' at line 1

 

select search_text, search_count from search_queries_sorted where search_text = 'can't'

 

It seems the apostrophe is causing a problem when inserted into the d/b

TIA

Ian

Share this post


Link to post
Share on other sites

I can not remove a word... I press the button To remove and occurs nothing... You words which were searched by clients have remained on a place

Share this post


Link to post
Share on other sites

Ok, here is something that I have been trying to do but have had no luck so I am hoping that someone here will be able to help.

 

The string that states: You could also try this: XXX is at the top and really should be below in the table box just under the suggestions like this...

 

 

 

Search Results

 

Your search for "ant" did not yield any matches.

 

Some Suggestions:

1. Check that your spelling was accurate.

2. Try using different keywords

3. Try using fewer keywords

4. Try using more general keywords

5. Try using our Advanced Search feature

 

You could also try something like: anti

 

 

 

Can anyone please tell me how to do this?

Edited by PopTheTop

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

I would like to see this as well.


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

Hi

 

Installed this contrib and all works fine when putting in the keywords manually.

 

But when I try to update from raw, all I get is 603 results of the keyword "array" Iknow that it is finding this word in the code rather than the db but I have no idea where?

 

Any suggestions?

Share this post


Link to post
Share on other sites
First I would like to say thanks for the mod - it's been very useful. I'm not a programmer myself - I specialise in SEO for our clients and the way Oscommerce indexes content made me choose and recommend it over all the other programs out there.

 

I have noticed though with this mod that there is an abnormality that happens - due I think to the 's' being stripped out.

 

If you search for two keywords together, and the second keyword has an 's' (i.e. paintball guns) - the search returns no products. This is strange as 'paintball gun' does return results. The initial search 'paintball guns' is replaced by the product not found page and paintball+gun in the search bar - if you search on this again, you still get the products not found page. The actual product name IS "paintball guns".

 

There is also this error line in that page -

Your search did not match any products

 

So it seems that stripping out the 's' has stopped searches on multiple keywords when the last one has an 's'.

 

I seems that I have this problem too. I also tried this...

In the line:

 

header('location: ' . tep_href_link( FILENAME_ADVANCED_SEARCH_RESULT , 'search_in_description=1&s=1&keywords=' . urlencode($pwstr_replace) . '' ));

 

Try replacing urlencode with rawurlencode - it worked for my site.

 

But that did nothing, all was the same. Any ideas?

My site is at http://www.popthetop.com/catalog

Edited by PopTheTop

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

When searching, I'm able to specify a start date, highest price, etc, but it won't search for it. The advanced search option doesn't seem to include all the options.

This is nice contribution, and it would be good if it was fully functional.

 

Is there any solution to this issue?

Anybody here able to get it to work right even with the S replacement option?

Share this post


Link to post
Share on other sites

Very nice ocntribution. Worked as described in new readme file. I have STS and just wannalet you know that it works. Some stuff you wont be able to search for as it says, search for this and replace with that. Choose some of the text and then find what u r looking for. I give A++ for good directions and usability of the contribution.

Share this post


Link to post
Share on other sites

Hey 211655, what is your site address?


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites

Okay, so i just installed this contribution and my searching still works fine, but when i click on the 'update from raw data' button nothing happens.

 

I also tried to add a keyword replacement so if i searched for boook it would say try book. But this didn't work either.

 

I have absolutely no idea what is up. Anyone else?

Share this post


Link to post
Share on other sites

I have installed this contribution and it works well, except for one thing. I think someone else had the same question further up.

 

When searching for 'ring' it comes up with 'earrings' in the search results. How do I get it to only search for the single word 'ring' and not give me 'earrings' ??

 

 

Thank you to Jakob Biegel and everyone else who worked on this one. :D


Mary-Ann

Chief Cook and Bottlewasher

Jack-of-All-Trades

Running 2.2MS2

Share this post


Link to post
Share on other sites

Does anybody have a way for this contribution to allow you to insert multiple keyword suggestions per 'incorrect' keyword?

 

For example (if I ran a Ford dealership through OSC :D)

 

customer searches for: forrd focus

 

I'd like to be able to make it throw back: "You may try ZX3, ZX5, or ZX3 Wagon" - with each of those links searching for that exact keyword (thusly pulling up the page for that model).

 

Right now, the contrib throws back: "You may try ZX3, ZX5, or ZX3 Wagon" - which won't give any result back that is worthwhile, if any result at all, since it is searching for that entire underlined string.

 

Basically, I'm just trying to steer customers to particular products based on the keywords they are using, instead of steering them towards categories where they have to make more choices about what to look at.

 

Thanks for any & all help!

 

Jacob

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×