michimaus,
hozone had this to say early on in this topic. It will allow your guests to see pricing for products
use this function in includes/classes/currencies.php
//CGDiscountSpecials start
function display_price($products_price, $products_tax, $quantity = 1) {
global $customer_id;
$query = tep_db_query("select g.customers_groups_discount from " . TABLE_CUSTOMERS_GROUPS . " g inner join " . TABLE_CUSTOMERS . " c on g.customers_groups_id = c.customers_groups_id and c.customers_id = '" . $customer_id . "'");
$query_result = tep_db_fetch_array($query);
$customers_groups_discount = $query_result['customers_groups_discount'];
$query = tep_db_query("select customers_discount from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");
$query_result = tep_db_fetch_array($query);
$customer_discount = $query_result['customers_discount'];
$customer_discount = $customer_discount + $customers_groups_discount;
if ($customer_discount >= 0) {
$products_price = $products_price + $products_price * abs($customer_discount) / 100;
} else {
$products_price = $products_price - $products_price * abs($customer_discount) / 100;
}
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
function display_price_nodiscount($products_price, $products_tax, $quantity = 1) {
global $customer_id;
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
//CGDiscountSpecials end