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)
-   -   Searching Multiple Categories (https://forum.x-cart.com/showthread.php?t=58949)

Unwire 04-18-2011 05:01 AM

Searching Multiple Categories
 
I would like to perform a search that matches a search term across multiple categories. I've searched the forums but have not been able to find a solution. Has this been done? Any idea how I might accomplish this?

URL-based search is acceptable (no need to redesign search page).. So far I'm able to perform a search within a single category with the following URL:

/search.php?mode=search&substring=&including=all&by _title=on&by_descr=on&by_sku=on&categoryid=23&sear ch_in_subcategories=on

Any thoughts on how I might expand this to search multiple categories? (eg: 23 AND 24).

Thanks in advance,
Chris.

qualiteam 04-19-2011 05:29 AM

Re: Searching Multiple Categories
 
You should alter the "include/search.php" script and add support for the multiple categories search.

The corresponding code block located below the "// Search by category...".


All times are GMT -8. The time now is 02:26 AM.

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