Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Info Box - Text entfernen?

    Shoryuken

    • Mitglied
    • Beiträge: 113
    Info Box - Text entfernen?
    am: 13. November 2011, 18:25:50
    Hi Leute,

    würde gerne aus der Infobox den Text entfernen - soll also nur das Benutzergruppenbild zu sehen sein. In der "box_infobox.html" hat man für den Inhalt (also wo das Benutzergruppenbild + Text zu sehen ist) die Zeile {$BOX_CONTENT}. Weiss jetzt gar nicht, welche Zeile ich für das Entfernen des Textes, löschen muss.  :-?

    Gruß

    Linkback: https://www.modified-shop.org/forum/index.php?topic=16690.0
    Trade Republic - Provisionsfrei Aktien handeln

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Info Box - Text entfernen?
    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:

    Code: PHP  [Auswählen]
    $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:

    Code: PHP  [Auswählen]
    $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);

    Shoryuken

    • Mitglied
    • Beiträge: 113
    Re: Info Box - Text entfernen?
    Antwort #2 am: 13. November 2011, 19:08:44
    Danke.  :-D
    Marktplatz - Eine große Auswahl an neuen und hilfreichen Modulen sowie modernen Templates für die modified eCommerce Shopsoftware
    4 Antworten
    2955 Aufrufe
    06. September 2012, 09:23:51 von Lecaffee24
    6 Antworten
    2251 Aufrufe
    21. April 2017, 11:17:15 von Moba777
    5 Antworten
    3059 Aufrufe
    20. Juni 2015, 14:01:03 von hpzeller