开发者

php smarty not passing to browser unless logged in

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>
        {$GLOBALS.cartUpdate|@array_shift} //this enables the update button displayed in another td
        {/foreach}

    </tr>

I don't know about all the inner workings of this sy开发者_运维知识库stem (Livecart), but is there anything I can do or look through to make it force the calculation/display. That and does anyone know anything that could cause a non logged in user to not see some things?

There is also another thing with this system that to show the user's name with ${user.fullname} the user must be on a page that is within the /user directory.. I don't understand why. This is not my problem, but thought it might be useful info..

Thanks..


Turns out there was some setting in the Admin area of this setting that is mysterously linked to this Tax calculation. I guess there's still some bugs to be ironed out.

Just had to click the checkbox for: Enable shipping cost estimation in shopping cart page and it works now.

Thanks for the suggestions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜