En TPL:
{if $logged}
Estás Logueado
{else}
No estás Logueado
{/if}
EN PHP:
if ($cookie->isLogged()) {
echo 'Logueado';
} else {
echo 'No Logueado';
}
-------------------------------------------------
En TPL:
{$var1=$cart->getOrderTotal(true)}
{if ($var1 == 0)}
CARRITO VACIO
{else}
CARRITO LLENO
{/if}
----------------------------------------------
{if isset($customerName) && $customerName} Cliente: {$customerName} {/if}

No hay comentarios:
Publicar un comentario