Hi
I've created a site using ablecommerce and added a log in button (simply a static button within every content section of the site linking to the login.aspx page). I was wondering how to change this to a 'log out' button when the user is logged in? You can probably tell i'm fairly amateur at this but any help would be greatly appreciated, complicated or not.
Thanks
Rich
Log in / out buttons
Re: Log in / out buttons
In scriptlet you can use following NVeclocity code to check user
Code: Select all
#if($customer.IsAnonymous)
Login
#else
Logout
#end
Re: Log in / out buttons
brilliant, it works. thanks!