Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

search in a specific categories


zeberrun

Recommended Posts

Posted

* as we have seen in many sites, there is an option to search in categories.

*i added categories list in header.php (pull down menu) , but if i try to search an item in a specific category, it still searches the all products.

* what i must add below lines to be able to search a word in a specific category?

 

rgds

 

<li><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?><form name="quick_find" action="advanced_search_result.php" method="get"><input style="WIDTH: 100px; margin-top:8px;" maxLength="30" size="10" name="keywords"> <input type="submit" value="search"></form></li>

Posted

try putting your drop within the form!!

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

the drop must occur after

<form name="quick_find" action="advanced_search_result.php" method="get">

not b4

 

addendum:

 

you must also use tep_href_link here, or u will have sid issues

 

http://www.oscommerce.com/forums/index.php?sho...c=330479&hl

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...