Log in User

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
shoaib
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Wed May 21, 2008 11:08 pm

Log in User

Post by shoaib » Thu May 22, 2008 1:59 am

Plz tell me how to login user using Able Commerce API in C#. How to create object of token and use it. How to create object of basket and use it.

User avatar
m_plugables
Commander (CMDR)
Commander (CMDR)
Posts: 149
Joined: Tue Mar 11, 2008 12:44 am
Contact:

Re: Log in User

Post by m_plugables » Tue May 27, 2008 11:42 am

How to create object of token and use it.
There is no need to create the Token object. A token object is by default created by the AbleCommerce. You just need to use this created object on any AbleCommerce page you want.
For example if you want to see the Email Address of current user

Code: Select all

SomeLabel.Text = Token.Instance.User.Email;
How to create object of basket and use it.
There is no need to create the Basket object. It will be already created when some user comes to the AbleCommerce cart. You can reference the user basket through Token object at any page. For example if you want to see the basket item count for current user

Code: Select all

SomeLabel.Text = Token.Instance.User.Basket.Items.Count.ToString();
Plz tell me how to login user using Able Commerce API in C#.
See the ConLib/LoginDialog.ascx control.
Image
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com

Post Reply