Antwort #1 am: 13. November 2011, 18:39:38
Dann kommentiere den Teil in der "/templates/<dein-template>/source/boxes/infobox.php" einfach aus:
Suche:
$box_smarty = new smarty;
$box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
if ($_SESSION['customers_status']['customers_status_image'] != '') {
$loginboxcontent = xtc_image('admin/images/icons/' . $_SESSION['customers_status']['customers_status_image']) . '<br />';
}
$loginboxcontent .= BOX_LOGINBOX_STATUS . ' <strong>' . $_SESSION['customers_status']['customers_status_name'] . '</strong><br />';
if ($_SESSION['customers_status']['customers_status_show_price'] == 0) {
$loginboxcontent .= NOT_ALLOWED_TO_SEE_PRICES_TEXT;
} else {
if ($_SESSION['customers_status']['customers_status_discount'] != '0.00') {
$loginboxcontent .= BOX_LOGINBOX_DISCOUNT . ' ' . $_SESSION['customers_status']['customers_status_discount'] . '%<br />';
}
if ($_SESSION['customers_status']['customers_status_ot_discount_flag'] == 1 && $_SESSION['customers_status']['customers_status_ot_discount'] != '0.00') {
$loginboxcontent .= BOX_LOGINBOX_DISCOUNT_TEXT . ' ' . $_SESSION['customers_status']['customers_status_ot_discount'] . ' % ' . BOX_LOGINBOX_DISCOUNT_OT . '<br />';
}
}
$box_smarty->assign('BOX_CONTENT', $loginboxcontent);
$box_smarty->assign('language', $_SESSION['language']);
$box_smarty->caching = 0;
$box_infobox = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_infobox.html');
$smarty->assign('box_INFOBOX', $box_infobox);
und ersetze mit:
$box_smarty = new smarty;
$box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
if ($_SESSION['customers_status']['customers_status_image'] != '') {
$loginboxcontent = xtc_image('admin/images/icons/' . $_SESSION['customers_status']['customers_status_image']) . '<br />';
}
/*
$loginboxcontent .= BOX_LOGINBOX_STATUS . ' <strong>' . $_SESSION['customers_status']['customers_status_name'] . '</strong><br />';
if ($_SESSION['customers_status']['customers_status_show_price'] == 0) {
$loginboxcontent .= NOT_ALLOWED_TO_SEE_PRICES_TEXT;
} else {
if ($_SESSION['customers_status']['customers_status_discount'] != '0.00') {
$loginboxcontent .= BOX_LOGINBOX_DISCOUNT . ' ' . $_SESSION['customers_status']['customers_status_discount'] . '%<br />';
}
if ($_SESSION['customers_status']['customers_status_ot_discount_flag'] == 1 && $_SESSION['customers_status']['customers_status_ot_discount'] != '0.00') {
$loginboxcontent .= BOX_LOGINBOX_DISCOUNT_TEXT . ' ' . $_SESSION['customers_status']['customers_status_ot_discount'] . ' % ' . BOX_LOGINBOX_DISCOUNT_OT . '<br />';
}
}
*/
$box_smarty->assign('BOX_CONTENT', $loginboxcontent);
$box_smarty->assign('language', $_SESSION['language']);
$box_smarty->caching = 0;
$box_infobox = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_infobox.html');
$smarty->assign('box_INFOBOX', $box_infobox);