php smarty not passing to browser unless logged in.

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-05-05T13:03:24Z Indexed on 2010/05/05 13:08 UTC
Read the original article Hit count: 209

Filed under:
|
|
|

I'm not the best at understanding these things with php and smarty, but this is really annoying.

On: http://www.euroworker.no/order, there is meant to be a display of the amount of tax included in the price like:

Tax (25%):    772,-
Totalt:      3861,-

But unless the user has logged in or created a new account, the tax doesn't display.

Here is the Smarty code:

<tr id="taxtr">

    <td>&nbsp;</td>
    <td>&nbsp;</td>

    {foreach $cart.taxes.$currency as $tax}
        <td>&nbsp;</td>
        <td colspan="4" class="subTotalCaption2">{$tax.name_lang}:&nbsp;</td>
        <td class="amount taxAmount2">{$tax.formattedAmount}&nbsp;</td>
        {$cart.formattedTotal.$currency
        {$GLOBALS.cartUpdate|@array_shift}
        {/foreach}

    </tr>

I don't know about all the inner workings of this system (Livecart), but is there anything I can do or look through to make it force the calculation/display.

Thanks..

© Stack Overflow or respective owner

Related posts about php

Related posts about smarty