Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
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: Shop - Neue Artikel Box ausblenden

    DominikSchille

    • Neu im Forum
    • Beiträge: 14
    Shop - Neue Artikel Box ausblenden
    am: 30. September 2017, 23:22:20
    Hallo liebe Forengemeinde,

    ich würde in meinem Onlineshop shop.baeckereirach.de gerne die Box Neue Artikel entfernen. Ich habe schon probiert die Funktion in der index.html von meinem Template auszukommentieren. Leider bekomm ich beim Upload und Aufruf meines Shops immer eine weiße Seite. Wenn ich die Auskommentierung wieder raus nehme, funktioniert es wieder.

    Ich hab hier mal meine index.html beigefügt. Wer kann mir helfen?

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="index"} {config_load file="lang_`$language`.custom"} {if isset($box_ADMIN)}

    {$box_ADMIN}{/if}
    {if isset($box_INFOBOX)}
    {$box_INFOBOX}
    {/if} {if isset($box_LANGUAGES)}
    {$box_LANGUAGES}
    {/if}
            •     {if isset($account)}
            •     {#link_account#}
            •     {/if} {if isset($smarty.session.customer_id)} {#link_logoff#} {else} {#new_customer#}
            •     {#link_login#}
            •     {/if}
    {* ENDE layout_navbar *}
     
    {if isset($box_SEARCH)}
    {$box_SEARCH}
    {/if}
    {* ENDE layout_logo *}
    {if isset($home) && $home == true}
    {if isset($box_CATEGORIES)}{$box_CATEGORIES}{/if} {if isset($box_ADD_QUICKIE)}{$box_ADD_QUICKIE}{/if} {if isset($box_LOGIN)}{$box_LOGIN}{/if} {if isset($box_WHATSNEW)}{$box_WHATSNEW}{/if} {if isset($box_SPECIALS)}{$box_SPECIALS}{/if} {if isset($box_LAST_VIEWED)}{$box_LAST_VIEWED}{/if} {if isset($box_REVIEWS)}{$box_REVIEWS}{/if} {if isset($box_MANUFACTURERS)}{$box_MANUFACTURERS}{/if} {if isset($box_MANUFACTURERS_INFO)}{$box_MANUFACTURERS_INFO}{/if} {if isset($box_CURRENCIES)}{$box_CURRENCIES}{/if} {if isset($box_HISTORY)}{$box_HISTORY}{/if} {if isset($box_TRUSTEDSHOPS)}{$box_TRUSTEDSHOPS}{/if}
    {* ENDE col_left *}
            •     {#link_contact#}
            •     {#link_imprint#}
            •     {#link_checkout#}
            •     {if isset($box_CART)}
            •     {$box_CART}
            •     {/if} {if isset($box_WISHLIST)}
            •     {$box_WISHLIST}
            •     {/if}
    {if isset($SLIDER)}
            •     {foreach name=outer item=slider from=$SLIDER}
            •     {$slider.IMAGE}
            •     {/foreach}
    {/if} {if isset($BANNER)}
    {$BANNER}
    {/if} {if isset($main_content)}{$main_content}{/if} {if isset($box_BESTSELLERS)}{$box_BESTSELLERS}{/if}
    {* ENDE col_right *} {elseif isset($fullcontent) && $fullcontent == true}
            •     {#link_index#}
            •     {#link_contact#}
            •     {#link_imprint#}
            •     {#link_checkout#}
            •     {if isset($box_CART)}
            •     {$box_CART}
            •     {/if} {if isset($box_WISHLIST)}
            •     {$box_WISHLIST}
            •     {/if}
    {if isset($navtrail)}
    {#text_here#}{$navtrail}
    {/if} {if isset($main_content)}{$main_content}{/if} {if $bestseller} {if isset($box_BESTSELLERS)}{$box_BESTSELLERS}{/if} {/if}
    {* ENDE col_full *} {else}
    {if isset($box_CATEGORIES)}{$box_CATEGORIES}{/if} {if isset($box_ADD_QUICKIE)}{$box_ADD_QUICKIE}{/if} {if isset($box_LOGIN)}{$box_LOGIN}{/if} {if isset($box_WHATSNEW)}{$box_WHATSNEW}{/if} {if isset($box_SPECIALS)}{$box_SPECIALS}{/if} {if isset($box_LAST_VIEWED)}{$box_LAST_VIEWED}{/if} {if isset($box_REVIEWS)}{$box_REVIEWS}{/if} {if isset($box_MANUFACTURERS)}{$box_MANUFACTURERS}{/if} {if isset($box_MANUFACTURERS_INFO)}{$box_MANUFACTURERS_INFO}{/if} {if isset($box_CURRENCIES)}{$box_CURRENCIES}{/if} {if isset($box_HISTORY)}{$box_HISTORY}{/if} {if isset($box_TRUSTEDSHOPS)}{$box_TRUSTEDSHOPS}{/if}
    {* ENDE col_left *}
            •     {#link_contact#}
            •     {#link_imprint#}
            •     {#link_checkout#}
            •     {if isset($box_CART)}
            •     {$box_CART}
            •     {/if} {if isset($box_WISHLIST)}
            •     {$box_WISHLIST}
            •     {/if}
    {if isset($navtrail)}
    {#text_here#}{$navtrail}
    {/if} {if isset($main_content)}{$main_content}{/if} {if $bestseller}{if isset($box_BESTSELLERS)}{$box_BESTSELLERS}{/if}{/if}
    {* ENDE col_right *} {/if}
    {* ENDE layout_content *}
    {if isset($box_CONTENT)}
    {$box_CONTENT}
    {/if} {if isset($box_INFORMATION)}
    {$box_INFORMATION}
    {/if} {if isset($box_MISCELLANEOUS)}
    {$box_MISCELLANEOUS}
    {/if} {if isset($box_NEWSLETTER)}
    {$box_NEWSLETTER}
    {/if}
    {$smarty.const.TITLE} © {$smarty.now|date_format:"%Y"} | Template © 2009-{$smarty.now|date_format:"%Y"} by modified eCommerce Shopsoftware
    {if ($smarty.const.TRACKING_COUNT_ADMIN_ACTIVE == 'true' && $smarty.session.customers_status.customers_status_id == '0') || $smarty.session.customers_status.customers_status_id != '0'} {if $smarty.const.TRACKING_PIWIK_ACTIVE == 'true'} {piwik url=$smarty.const.TRACKING_PIWIK_LOCAL_PATH id=$smarty.const.TRACKING_PIWIK_ID goal=$smarty.const.TRACKING_PIWIK_GOAL} {/if} {if $smarty.const.TRACKING_GOOGLEANALYTICS_ACTIVE == 'true'} {googleanalytics account=$smarty.const.TRACKING_GOOGLEANALYTICS_ID} {/if} {if $smarty.const.TRACKING_FACEBOOK_ACTIVE=='true'} {facebook id=$smarty.const.TRACKING_FACEBOOK_ID} {/if} {/if}
     


    Linkback: https://www.modified-shop.org/forum/index.php?topic=38053.0

    awids

    • Experte
    • Beiträge: 3.793
    • Geschlecht:
    Re: Shop - Neue Artikel Box ausblenden
    Antwort #1 am: 30. September 2017, 23:46:51
    Sind die

    Zitat

    da wirklich mit in der Datei oder wurde das nur vom Forum so umgewandelt?

    In der index.hmtl wird normalerweise diese Box so auskommentiert:

    Code: PHP  [Auswählen]
    {*if isset($box_WHATSNEW)}{$box_WHATSNEW}{/if*}

    Alternative 1:

    templates/tpl_modified/source/boxes.php

    Suche:

    Code: PHP  [Auswählen]
    // -----------------------------------------------------------------------------------------
    //    hide in search
    // -----------------------------------------------------------------------------------------
      if (substr(basename($PHP_SELF), 0,8) != 'advanced' && WHATSNEW_CATEGORIES === false) {
        require_once(DIR_FS_BOXES . 'whats_new.php');
      }

    Kommentiere aus:

    Code: PHP  [Auswählen]
    // -----------------------------------------------------------------------------------------
    //    hide in search
    // -----------------------------------------------------------------------------------------
      if (substr(basename($PHP_SELF), 0,8) != 'advanced' && WHATSNEW_CATEGORIES === false) {
        //require_once(DIR_FS_BOXES . 'whats_new.php');
      }

    Alternative 2:

    templates/tpl_modified/config/config.php

    Suche:

    Code: PHP  [Auswählen]
      defined('WHATSNEW_CATEGORIES') or define('WHATSNEW_CATEGORIES', false); // 'true' zeigt den Link "Neue Artikel" im Kategoriebaum / 'false' zeigt die "Neue Artikel" als separate Box

    Ändere in:

    Code: PHP  [Auswählen]
      defined('WHATSNEW_CATEGORIES') or define('WHATSNEW_CATEGORIES', true); // 'true' zeigt den Link "Neue Artikel" im Kategoriebaum / 'false' zeigt die "Neue Artikel" als separate Box

    Eihops

    • Frisch an Board
    • Beiträge: 58
    Re: Shop - Neue Artikel Box ausblenden
    Antwort #2 am: 16. Oktober 2022, 17:15:20
    @avids
    Vielen Dank für Deine Hinweise!

    Vielleicht noch zum Verständnis fünf Jahre später: Um die neuen Artikel komplett loszuwerden, mußte ich beide Alternativen umsetzen. Das Setzen der betreffenden Variablen auf false in der config.php sorgt zunächst dafür, daß die neuen Artikel in einer gesonderten Box angezeigt werden. Diese muß dann noch zum Verschwinden gebracht werden, am besten durch Kommentierung der betreffenden Zeile in boxes.php.
    3 Antworten
    2577 Aufrufe
    06. April 2015, 18:09:01 von astaller
    16 Antworten
    7752 Aufrufe
    21. September 2016, 16:55:31 von noRiddle (revilonetz)
    9 Antworten
    2793 Aufrufe
    23. November 2017, 19:26:35 von Modulfux
               
    anything