Knowledgebase: Tips and Tricks
Check customer login status in the store
Posted by Jen Ferraz on 11 April 2011 03:03 PM
To show code only if the customer has logged into an account: The template code is:

<mvt:if expr="g.basket:cust_id NE '0'">
Show text here if customer has logged in
<mvt:else>
Show text here if customer has not logged in
</mvt:if>

The customer code in the customer's basket is 0 for all non-logged in users. The above code checks to see if the code is not 0.
(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?