Smarty/PHP loop not being passed to IE(Pc) or Chrome/FF(Mac)

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-04-27T08:48:10Z Indexed on 2010/04/27 8:53 UTC
Read the original article Hit count: 129

Filed under:
|
|
|
|

Hi, I've been working on a site that has a lot of PHP/Smarty involved, I've been asked to re-skin a webstore checkout process, but during this we've discovered this issue. This particular quirk is one part of a tax calculation that doesn't get sent to the browser in IE for PC and Chrome/FF for the Mac. It's NOT in the output source in the browsers, but is in FF, Chrome and Opera on the PC.

Here is the code that doesn't "work:"

{foreach $cart.taxes.$currency as $tax}
    <div id="subTotalCaption2"><p style="width:100px;">{$tax.name_lang}:</p></div>
        <div id="taxAmount2"><p>{$tax.formattedAmount}</p></div>
{/foreach}

It's not a CSS issue as if you go all the way through the checkout process and then back to the order page (Not using the back button, using the on-site links) it works. There is another calculation on the last page of the process that does the same thing:

{foreach from=$order.taxes.$currency item="tax"}
        <tr>
            <td colspan="{$colspan}" class="tax">{$tax.name_lang}:</td>
            <td>{$tax.formattedAmount}</td>
        </tr>
    {/foreach}

I guess my question is what could cause this to not be read (Parsed?) in IE and the mac but other browsers do it fine on the PC.

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about smarty