[font=Consolas,][left] [/left][/font]
I wish to use the code above (replacing visitor with ‘visitor’ with customers ‘firstname’ and email) in cs-cart. Can anyone guide me to which code I can insert this?
basically i’d want this code to run only when someone logs in
any idea?
thanks!!
cs-cart 2.2.4
For name:
{if $auth.user_id}{$user_info.firstname} {$user_info.lastname}{else}Anon{/if}
For email:
{if $auth.user_id}{$user_data.email}{else}anon@example.com{/if}