Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Search Enhancement Contribution


kmazumdar

Recommended Posts

Contribution : http://www.oscommerce.com/community/contributions,1266

 

Problem :

We are using MS2.2 and in catalog/advanced_search_result.php file I do not find the following

 

FIND:

 $breadcrumb->add(NAVBAR_TITLE1, tep_href_link(FILENAME_ADVANCED_SEARCH));
 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, tep_get_all_get_params(), 'NONSSL', true, false));?>

ABOVE ADD:

// Search enhancement mod start
               $search_enhancements_keywords = $_GET['keywords'];
               $search_enhancements_keywords = strip_tags($search_enhancements_keywords);
               $search_enhancements_keywords = addslashes($search_enhancements_keywords);                
         
               if ($search_enhancements_keywords != $last_search_insert) {
                       tep_db_query("insert into search_queries (search_text)  values ('" .  $search_enhancements_keywords . "')");
                       tep_session_register('last_search_insert');
                       $last_search_insert = $search_enhancements_keywords;
               }
// Search enhancement mod end

 

Any help on this will be highly appreciatef.

 

Thanks

Kmazumdar

Edited by kmazumdar
Link to comment
Share on other sites

well the block of text you need to add for that contrib looks different on mine.... double check..... but i added my block under this line near the top:

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH_RESULT);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...