VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Custom Login
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bardentech
Starting Member

34 Posts

Posted - September 16 2009 :  10:46:04  Show Profile  Reply with Quote
I have an AJAX login page that I want to incorporate into my site. Does anyone know how to submit the customer's username and password to login from a custom page? I'm using 6.5

ironhawker
VP-ASP Super User

USA
260 Posts

Posted - September 20 2009 :  17:37:50  Show Profile  Visit ironhawker's Homepage  Reply with Quote
A whole week has gone by..
More specific information would be helpful.
Maybe just have them set a cookie?
-------

VPAsp is very robust regarding Login's and Database hookup / permissions / Special pricing.
in the setup-->> Search -->> login
you get all these swithces
xaddcatalogid YesNo
Whether to automatically add the catalogid to an extended description hyperlink. Required for automatic generation of extended description pages. Always specify Yes unless there is a specific reason for No

--------------------------------------------------------------------------------

xallowsupplierlogin YesNo
If Yes, Suppliers can log into the administrative system with their supplier userid

--------------------------------------------------------------------------------

xbuttonlogin
Image to be used on various forms for a login. If none is specified, text is displayed.

--------------------------------------------------------------------------------

xcookielogin YesNo
If Yes, VP-ASP will remember who the customer is by setting a cookie on their PC. This will remove the need for the customer to login.

--------------------------------------------------------------------------------

Xdownloadswithoutlogin YesNo
Yes allows downloads without login. If someone can guess all four parameters that are passed to shopdownload.asp, they will be able to download the file without purchase.

--------------------------------------------------------------------------------

xfreeproductcatalogid
Special catalogid to denote free product in cart.

--------------------------------------------------------------------------------

xfreeproductcatalogids
Catalogids for free products. Separated by semicolon

--------------------------------------------------------------------------------

xLoginSeparatePage YesNo
If set to Yes, the customer login form will appear on a page of its own. If no, it will be included on the customer details form.

--------------------------------------------------------------------------------

xlogonrequired YesNo
The shop is available to everyone. Set to Yes, the shop is restricted to customers who login or provide their details before they can shop.

--------------------------------------------------------------------------------

xpriceloggedinonly YesNo
If set to Yes, the prices will only display to logged in customers.

--------------------------------------------------------------------------------

xproductcatalogonly YesNo
Yes turns VP-ASP into a catalog. Products are displayed but cannot be purchased

--------------------------------------------------------------------------------

xprojectcatalogid
When using project payments this is the catalogid stored with the order

--------------------------------------------------------------------------------

xpromptforlogin YesNo
If Yes, customers can login to restore their customer details

--------------------------------------------------------------------------------



~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
Institute for Higher Learning
[email protected]
http://www.ironhawker.com
425-828-0738
Go to Top of Page

bardentech
Starting Member

34 Posts

Posted - September 21 2009 :  11:42:39  Show Profile  Reply with Quote
Thanks for this information but it doesn't answer my question. I have a custom form. Let's just for now say there are 3 things on it. One is the username text box, the second is the password text box and the third is the submit button. I want to know if there's a specific function or asp page to submit the username and password to so that a user can login without using the packaged shopcustadminlogin.asp page.
Go to Top of Page

ironhawker
VP-ASP Super User

USA
260 Posts

Posted - September 21 2009 :  13:17:49  Show Profile  Visit ironhawker's Homepage  Reply with Quote
shopcustadminlogin.asp refers to shop$db.asp as an include file. There are several routines in there to hook up to the database and start a session either by login or using the cookies set up for login.
I presume you will have to emulate these routines with your custom form.

Search for all these Subs and re-write them (somewhere else) to set up your login.
Sub SetupSession - Sub LogUser - Sub CheckValidLogin - shoploginforce.asp - Sub CustCheckAdmin - Sub GetCustomerCookie - If getconfig("xCookieLogin")="Yes" - setsess "login",""

Go to Top of Page

creativechaos
VP-ASP New User

Australia
64 Posts

Posted - September 23 2009 :  01:47:00  Show Profile  Visit creativechaos's Homepage  Reply with Quote
Hi,

The shopcustadminlogin.asp page posts the login data to shoplogin.asp.

shoplogin.asp accepts the following form variables:

strPassword
stremail
strLastname
returnurl

Depending on which login mechanism you are using you will need to pass at least two of these variables to the shoplogin.asp page.

If you use a combination of email/password to login, (by having xpassword set to Yes and xcustomeruserid set to No in config), you will need to pass the email address as an input field named "stremail" and the password as an input field named "strpassword".

If you use a combination of username/password (by having xpassword set to Yes and xcustomeruserid set to Yes), you will need to pass the username as an input field named "stremail" and the password as an input field named "strpassword".

If you use a combination of lastname/email (by having xpassword set to No and xcustomeruserid set to No in config), you will need to pass the email address as an input field named "stremail" and the lastname as an input field named "strLastname".

You have the option of passing an input field called "returnurl" if you want the customer redirected to a particular page after having logged in.

If you are using AJAX you may need to create a copy of the shoplogin.asp file and rewrite the functions slightly (I haven't tried whether it works from an AJAX request).

Hope this helps.

Cheers,

Michael Dunkley
Creative Chaos
http://www.creativechaos.com.au
Go to Top of Page

ironhawker
VP-ASP Super User

USA
260 Posts

Posted - September 30 2009 :  00:20:38  Show Profile  Visit ironhawker's Homepage  Reply with Quote
http://helpnotes.vpasp.com/shopexd.asp?id=374

Sample Login Form


The HTML below allows a login from any of your own pages. The “returnurl” is designed to tell VP-ASP which page to go to after a successful login. If unsuccessful the default login page shopcustadminlogin.asp is displayed.

FORM action=shoplogin.asp method=post>
INPUT type=hidden value=shopdisplaycategories.asp name=returnurl>
INPUT name=strlastname>
INPUT name=stremail>
INPUT type=submit value=Login>
/FORM>


~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
Institute for Higher Learning
[email protected]
http://www.ironhawker.com
425-828-0738
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000