Good evening zenners. I'm trying to have a wholesale site whereby viewers can only see products and various pages if logged in. To do this i intend to use some code i found in the forum archive. I'm trying to apply the following "IF" condition to a line in the tpl_header.php to prevent the categories navBar being shown unless logged in but it's not workin!!(I dont need an "else" clause do I? ) Can anyone tell me why it's not working? many thanks in advance.
<!--bof-optional categories tabs navigation display-->
if ($_SESSION['customer_id']) {
// display this link for logged in user
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
}


(I dont need an "else" clause do I? ) Can anyone tell me why it's not working? many thanks in advance.


