X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Multiple Product Search (https://forum.x-cart.com/showthread.php?t=8009)

cyberlab 06-09-2004 06:56 AM

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?

B00MER 06-09-2004 08:49 AM

Not sure if this is what you need but:

:arrow: http://www.cart-lab.com/lab/catalog/Brand_Model_Year_35x-p-2.html

cyberlab 06-09-2004 10:09 AM

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

B00MER 06-09-2004 10:53 AM

You could modify the search.php to search for the extra fields param00-09 and add those fields to the current search form.

cyberlab 06-15-2004 06:34 AM

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

shan 06-15-2004 06:52 AM

you would need to edit search.php to acept the extra search params

cyberlab 06-15-2004 07:53 AM

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.


All times are GMT -8. The time now is 05:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.