Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Advanced Search error


alanj23

Recommended Posts

Hi, when I search for a category with a one word title (ie car) search works fine, however when I search for a category with a 2 word title (ie bikes & Boats) i get the following error

 

Warning: array_unique(): The argument should be an array in /hsphere/local/home/store/templates/content/advanced_search_result.tpl.php on line 204

 

any suggestions?

 

Thanks in advance :)

Link to comment
Share on other sites

Almost forgot heres the code from my advanced search lines 197 -206

 

$listing_sql = $select_str . $from_str . $where_str . $order_str;

$listing_query = tep_db_query($listing_sql);

while ($listing = tep_db_fetch_array($listing_query)) {

$categories[] = $listing['categories_id'];

$prod_sear_id[] = $listing['products_id'];

}

$categories_dedou = array_unique($categories);

 

require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING);

 

thanks again

Link to comment
Share on other sites

Hard to tell since the coding is not stock osc and we don't have an example. It would be better to contact the template provider about the error. A quick solution that might work would be to replace array_unique by array in this file...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...