X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Search within category? (https://forum.x-cart.com/showthread.php?t=68542)

designguru 01-26-2014 07:05 AM

Search within category?
 
I wonder if there is a possibility to add a search field to search within a category? I.e. the user browses Apparel and now sees a search field only for this category.

cherie 01-27-2014 04:38 PM

Re: Search within category?
 
You could copy the normal search code and add the line for category as a hidden field, assigning the current category {$cat} or {$current_category.categoryid}. See the code on search.php for the category selector.

designguru 01-28-2014 08:12 AM

Re: Search within category?
 
Ok, I try that. It's strange that there are no posts on such a huge feature.

tartaglia 01-28-2014 12:45 PM

Re: Search within category?
 
I agree, building searches like this so the customer doesn't have to go to the advanced search screen and select the category from the dropdown would be a great feature.

When you get this working will you share?

I would love to provide some more targeted search boxes next to our global search on our homepage, like a separate box that you could type keywords in and it said "Search in Sheet Music" as the button.


All times are GMT -8. The time now is 10:55 PM.

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