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. | |
|
Comments (0)