It sounds like you want to display only one of these boxes, according to the current category (and none of them on other pages?) If that is true, you could do this:
PHP Code:
switch ($cPath) {
case '1':
require($template->get_template_dir('tpl_modules_featured_products2.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products2.php');
break;
case '7':
require($template->get_template_dir('tpl_modules_featured_products3.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products3.php');
break;
case '35':
require($template->get_template_dir('tpl_modules_featured_products4.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products4.php');
break;
default:
//any default code desired
}
Bookmarks