Neu Top Angebote im Warenkorb

Remdi-Augsburg

Gut bekanntes Mitglied
14. November 2016
126
11
Ich versuche gerade im Warenkorb die Top-Angebote box anzeigen zu lassen, allerdings funktioniert das nicht so recht. Sobald ich in meinem Child-Template die Datei /basket/index.tpl erstelle wird (scheinbar unabhängig vom Inhalt der index.tpl) auf der Warenkorb-Seite nur noch Weiß angezeigt.
Versucht habe ich es mit der unveränderten Original Datei aus dem Evo-Template und mit den Varianten

PHP:
{extends file="{$parent_template_path}/basket/index.tpl"}
{block name="basket" append}
    {lang key="topOffer" section="global" assign='title'}
    {lang key='showAllTopOffers' section='global' assign='moreTitle'}
{/block}
PHP:
{extends file="{$parent_template_path}/basket/index.tpl"}
    {block name="basket"}
        [...]
            {if !empty($xselling->Kauf) && count($xselling->Kauf->Artikel) > 0}
                {lang key="basketCustomerWhoBoughtXBoughtAlsoY" section="global" assign="panelTitle"}
                {include file='snippets/product_slider.tpl' productlist=$xselling->Kauf->Artikel title=$panelTitle}
            {/if}
            {lang key="topOffer" section="global" assign='title'}
            {lang key='showAllTopOffers' section='global' assign='moreTitle'}
            
        </div>
    {/block}

PHP:
{include file='layout/header.tpl'}

<h1>{$Warenkorbtext}</h1>

{include file="snippets/extension.tpl"}

{if !empty($WarenkorbVersandkostenfreiHinweis) && $Warenkorb->PositionenArr|@count > 0}
    <div class="alert alert-info">
        <span class="basket_notice">{$WarenkorbVersandkostenfreiHinweis} {$WarenkorbVersandkostenfreiLaenderHinweis|lcfirst}</span>
    </div>
{/if}
{if $Schnellkaufhinweis}
    <div class="alert alert-info">{$Schnellkaufhinweis}</div>
{/if}

{if ($Warenkorb->PositionenArr|@count > 0)}
    {if count($Warenkorbhinweise)>0}
        <div class="alert alert-warning">
            {foreach name=hinweise from=$Warenkorbhinweise item=Warenkorbhinweis}
                {$Warenkorbhinweis}
                <br />
            {/foreach}
        </div>
    {/if}

    {if !empty($BestellmengeHinweis)}
        <div class="alert alert-warning">{$BestellmengeHinweis}</div>
    {/if}

    {if !empty($MsgWarning)}
        <p class="alert alert-danger">{$MsgWarning}</p>
    {/if}

    {if !empty($invalidCouponCode)}
        <p class="alert alert-danger">{lang key="invalidCouponCode" section="checkout"}</p>
    {elseif !empty($cKuponfehler)}
        <p class="alert alert-danger">{lang key="couponErr$cKuponfehler" section="global"}</p>
    {/if}
    {if $nVersandfreiKuponGueltig}
        <div class="alert alert-success">
            {lang key="couponSucc1" section="global"}
            {foreach name=lieferlaender from=$cVersandfreiKuponLieferlaender_arr item=cVersandfreiKuponLieferlaender}
                {$cVersandfreiKuponLieferlaender}{if !$smarty.foreach.lieferlaender.last}, {/if}
            {/foreach}
        </div>
    {/if}
    {block name="basket"}
        [...]
            {if !empty($xselling->Kauf) && count($xselling->Kauf->Artikel) > 0}
                {lang key="basketCustomerWhoBoughtXBoughtAlsoY" section="global" assign="panelTitle"}
                {include file='snippets/product_slider.tpl' productlist=$xselling->Kauf->Artikel title=$panelTitle}
            {/if}
            
            {lang key="topOffer" section="global" assign='title'}
            {lang key='showAllTopOffers' section='global' assign='moreTitle'}
            
        </div>
    {/block}
{else}
    <a href="{$ShopURL}" class="submit btn btn-primary">{lang key="continueShopping" section="checkout"}</a>
{/if}

{include file='layout/footer.tpl'}

Auch wenn ich den Teil
PHP:
{lang key="topOffer" section="global" assign='title'}
{lang key='showAllTopOffers' section='global' assign='moreTitle'}
durch beispielsweise
PHP:
<div>TEST</div>
ersetze besteht das Problem weiterhin.


Verstehe ich da die funktionsweise von Child-Templates falsch oder warum funktioniert keine der Varianten? Andere Änderungen in meinem Child-Template funktionieren jedenfalls auf diese Weise...
 

Ähnliche Themen