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
Show text here if customer has not logged in
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.