Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

[Plugin] Smarty ignoriert if/else

$
0
0

Hallo,

Smarty ignoriert im Checkout/cartAction meine gesamten if/else Anweisungen für die entsprechende View, aber die Elemente werden angezeigt.
Die zugeordneten Variablen werden über eine Hook an die View übergeben:

public static function getSubscribedEvents()
{
    return array(
        'Shopware_Controllers_Frontend_Checkout::cartAction::After' => 'onCalculateShippingCosts'
    );
}

Das hier sind die If/else Anweisungen: 

{if isset($sDispatch, $sDispatchExpressAvailable, $sDispatchExpressStatus)}
    {if $sDispatchExpressAvailable eq true and $sDispatchExpressStatus eq false}
        {content}
    {else}
        {if $sDispatchExpressStatus eq true}
            {content}
        {/if}
    {/if}
{/if}

Weiß jemand woran das liegt?

P.S.: Entschuldigung für die Formulierung, bisschen müde. Sticking-out-tongue

Mit freundlichen grüßen, 
Brian


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>