View Single Post
  #2  
Old 02-21-2005, 04:30 PM
 
cyberdriveway cyberdriveway is offline
 

Advanced Member
  
Join Date: Aug 2004
Location: California
Posts: 32
 

Default

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));
__________________
Tyson McPherson
X-Cart version 4.1.8
PHP 4.3.9
MySQL server 4.1.12-log
MySQL client 4.1.12
Web server Apache/2.0.52 (Red Hat)
Operation system Red Hat 3.4.6-2
Reply With Quote