Hi,
My father always said to me : "When you don't know, you learn".
The way I give you is very simple, even without programming skills. You just have to create a template.php file in your theme folder and copy and paste the theme_uc_product_display_price() in it and replace "theme_" by "phptemplate_".
More infos about how override themes function here.
You are lucky, Drupal possess a very good API system and a complete handbook, that is not the case of all CMS...
So, to resume, in your template.php file, just put that :
<?php
function phptemplate_uc_product_display_price($price){
global $user;
if ($user->uid) {
$output = '<div class="display_price">';
$output .= uc_currency_format($price);
$output .= '</div>';
} else {
$output = t('Sorry, you have to be registered to see products prices');
}
return $output;
}
?>But try to understand the way to override theme functions, because this is the main way to customize drupal.
Good luck
zmove


Joined: 08/13/2007