View Single Post
  #9  
Old 10-28-2008, 11:18 AM
 
bionuts bionuts is offline
 

Senior Member
  
Join Date: Oct 2008
Posts: 109
 

Default Re: Getting Feautured Products to display in all categories

In another thread on the subject (http://forum.x-cart.com/showthread.php?t=40988&highlight=featured+products ) Tbone makes some further changes that (combined with the ones above) do restore the navigation to categories that have more than one page:

Quote:
Originally Posted by TBone
In featured_products.php

add
$searchtype="featured";
just before
include $xcart_dir."/include/search.php";

and comment out
$smarty->clear_assign("products");

In include/search.php

replace
$smarty->assign("products", $products);
with
if (!$searchtype=="featured") {
$smarty->assign("products", $products);
}

In products.php

add
$products = array();
unset($search_data, $products);
Just before
?> at the bottom of the page
These changes mean that the Featured Products box is displayed on the category page, and the navigation for categories with more than one page is maintained. All of this is good and another step forward.

Unfortunately, the navigation is repeated in the Featured Product box and this is wrong. There shouldn't be any navigation in there at all. Anyone know how to stop that?
Reply With Quote