Log in / out buttons

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Rich915
Ensign (ENS)
Ensign (ENS)
Posts: 8
Joined: Mon Sep 01, 2008 8:02 am

Log in / out buttons

Post by Rich915 » Wed Apr 22, 2009 4:42 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Log in / out buttons

Post by mazhar » Wed Apr 22, 2009 5:07 am

In scriptlet you can use following NVeclocity code to check user

Code: Select all

#if($customer.IsAnonymous)
					Login
				#else
					Logout
				#end

Rich915
Ensign (ENS)
Ensign (ENS)
Posts: 8
Joined: Mon Sep 01, 2008 8:02 am

Re: Log in / out buttons

Post by Rich915 » Wed Apr 22, 2009 6:58 am

brilliant, it works. thanks!

Post Reply