mivaecommerce / levels-readytheme

Repo for Levels ReadyTheme
1 stars 0 forks source link

Bad if Statement on OCST #32

Closed bheyde closed 8 years ago

bheyde commented 8 years ago
<div class="column whole">
    <mvt:if expr="1 EQ 2 AND g.Basket:cust_id">
        <div class="message message-info">You are currently logged in as <b>&mvte:customer:pw_email;</b>. <a href="&mvte:global:secure_sessionurl;Screen=OCST&Action=LOGO">Logout</a></div>
    </mvt:if>
    <mvt:if expr="g.Customer_Created">
        <div class="message message-success">Your account was created successfully.</div>
    </mvt:if>
    <div id="js-messages"></div>
</div>

Can you see what we were trying to accomplish with 1 EQ 2 AND g.Basket:cust_id?

influxweb commented 8 years ago

I see no reference on OCST, ACAD, ORDL, or LOGN that would make that conditional true. Based on the indented results, I have removed the entire IF statement since it is illogical to have a 'logout' button on a checkout page.