Log in User
Log in User
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.
- m_plugables
- Commander (CMDR)
- Posts: 149
- Joined: Tue Mar 11, 2008 12:44 am
- Contact:
Re: Log in User
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.How to create object of token and use it.
For example if you want to see the Email Address of current user
Code: Select all
SomeLabel.Text = Token.Instance.User.Email;
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 userHow to create object of basket and use it.
Code: Select all
SomeLabel.Text = Token.Instance.User.Basket.Items.Count.ToString();
See the ConLib/LoginDialog.ascx control.Plz tell me how to login user using Able Commerce API in C#.

Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com