Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Multiple Product Search

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-09-2004, 06:56 AM
 
cyberlab cyberlab is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 31
 

Default Multiple Product Search

I am trying for the longest while to figure out how to get a Multiple Product Search. Where I can search for different items at the same time and put it in one result field.

For example a customer wants to look for a specific jeans, t-shirt and shoe. He would just have to enter the three items in the search field and they all appear in the results page.

Could someone assist me?
Reply With Quote
  #2  
Old 06-09-2004, 08:49 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Not sure if this is what you need but:

http://www.cart-lab.com/lab/catalog/Brand_Model_Year_35x-p-2.html
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 06-09-2004, 10:09 AM
 
cyberlab cyberlab is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 31
 

Default

Not Really.... In the search field itself. A customer can put in more than one item numbers and they would show the result on one page. for example

Items you are searching for
Bicycle ---- 0156987T
Painting ---- 8756324H
Socks ---- 4759871m

A customer goes to the search field and enters all three of those numbers and they all appear in a search result Page
Reply With Quote
  #4  
Old 06-09-2004, 10:53 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You could modify the search.php to search for the extra fields param00-09 and add those fields to the current search form.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 06-15-2004, 06:34 AM
 
cyberlab cyberlab is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 31
 

Default

Is it possible to do a search.php?substring=Item#&substring=Item#2?

I tried that but its only showing the result for the last item number. How can I get it to show results for both item numbers
Reply With Quote
  #6  
Old 06-15-2004, 06:52 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you would need to edit search.php to acept the extra search params
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 06-15-2004, 07:53 AM
 
cyberlab cyberlab is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 31
 

Default

I am not to familiar with programming. This is what is my search code;

Code:
$ss = split(" ",$substring); foreach($ss as $s) // nfc - we add support for other fields to search $con[] = "(".$sql_tbl[products].".product like '%".$s."%'"." OR ". $sql_tbl[products].".productcode like '%".$s."%'"." OR ". $sql_tbl[products].".param00 like '%".$s."%'"." OR ". $sql_tbl[products].".param01 like '%".$s."%'"." OR ". $sql_tbl[products].".param02 like '%".$s."%'"." OR ". $sql_tbl[products].".descr like '%".$s."%'"." OR ". $sql_tbl[products].".fulldescr like '%".$s."%'"." OR ". $sql_tbl[products].".productid like '%".$s."%'".")"; //$substr .= "&substring=".urlencode($substring); }

Nothing is happening .... I tried searching for two different items and nothing.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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


All times are GMT -8. The time now is 07:30 AM.

   

 
X-Cart forums © 2001-2020