How do I hide field in node.tpl.php?
Here you go:

    if(isset($content['product:field_course_no_']['#object']-&gt;field_pd_number['und'][0]['safe_value'])){ 
     $my_field_value =  $content['product:field_course_no_']['#object']-&gt;field_pd_number['und'][0]['safe_value'];
} else {
        $my_field_value = '';
}