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

Search within category?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 01-26-2014, 07:05 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default 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.
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
  #2  
Old 01-27-2014, 04:38 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following 2 users thank cherie for this useful post:
sixfigure (01-28-2014), tony_sologubov (01-29-2014)
  #3  
Old 01-28-2014, 08:12 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default Re: Search within category?

Ok, I try that. It's strange that there are no posts on such a huge feature.
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
  #4  
Old 01-28-2014, 12:45 PM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default 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.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:06 PM.

   

 
X-Cart forums © 2001-2020