I was insterested in having the Rewards Points box show only if they were logged in and had reward points earned or pending so I did the following:
in includes/modules/sideboxes/reward_points.php
add:
if ((isset($_SESSION['customer_id']) && getCustomersRewardPoints($_SESSION['customer_id']) > 0)) {
$show_reward_point_box = true;
} else {
$show_reward_point_box = false;
}
if ($show_reward_point_box == true) {
above this line:
require($template->get_template_dir('tpl_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_reward_points.php');
add this:
}
above this:
?>
I don't know if that is the correct way to do it, but it works for me. I just put this here for anyone who wants to do the same thing.
Andy, please chime in if it's incorrect or there is a better way to do it.
Thanks
Zen Cart: 1.3.8a
PHP: 5.2.4
MySQL: 5.0.45
Pine Tree Candles