Thanks for posting. I added code as suggested. Everything worked as stated with one exception.
Quote:
then add the following code to 'featured_products.php' after the following line (probably line 69):
|
I did remove the code from "featured_products.php" since it appears to be redunent, and casued an error.
Quote:
add the same code to the file '/include/search.php' before the $products variable is assigned to $smarty.
|
This worked best when placed around line 595 of the '/include/search.php' file. See below:
Code:
if (!empty($active_modules["Special_Offers"]) && empty($search_data["products"]["show_special_prices"])) {
func_offers_check_products($login, $current_area, $products);
}
### START pwx addition, 050211
$f_categories = func_get_categories($products);
$smarty->assign("f_products_categories", $f_categories);
### END pwx addition, 050211
}
# Assign the Smarty variables
$smarty->assign("navigation_script","search.php?mode=search");
$smarty->assign("products", $products);
$smarty->assign("first_item", $first_page+1);
$smarty->assign("last_item", min($first_page+$objects_per_page, $total_items));