BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Knowledge Manager Community Forum > Customization and Integration

 
 
Thread Tools Display Modes
  #1  
Old 08-12-2009, 08:45 AM
runeb + runeb is offline
Interspire Customer
 
Join Date: Aug 2009
Posts: 2
Default Search beginning with number

Hello,

I need to customize the search field in order to accept search queries beginning with a number. This is important since I have many products beginning with a number. When I search for e.g. 1abc I will be taken directly to article #1.

I have tried customizing javascript files, but it seems to me that it might be some .htaccess rewrite?

Hope to get some help from you guys
  #2  
Old 08-18-2009, 07:45 AM
runeb + runeb is offline
Interspire Customer
 
Join Date: Aug 2009
Posts: 2
Default

In case anyone else needs this:

Go to: /ikm_path/includes/classes/class.search.parent.php and find the function questSearch.

Comment out the following:

if ((int)$this->searchString > 0) {
$qapi = new API_QUESTION();
if ($qapi->load((int)$this->searchString)) {
header("location: ".GetUrl("question",(int)$this->searchString));
die();
}
}
  #3  
Old 06-10-2010, 11:42 PM
ader1sr
Guest
 
Posts: n/a
Default

I was just thinking about this today, thanks for posting your solution!
 

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump