Author |
Topic |
|
hakkatil
VP-CART New User
109 Posts |
Posted - September 11 2002 : 18:30:00
|
I know a lot of people asked for this one. Once again VPASP allowed me to do this customization. I used VPASP' s files and changed some code. Basicly, this allows the existing customer to login then in the customer shipping and billing info page, customers information will display.
Post your feedback here. together we improve this code. Next will be sending customers their appreciated page.
Please visit this site http://208.17.144.14/testsite/shopcarttemp/index.asp
and use test for lastname, [email protected] for e-mail.
HAKAN
|
|
andersahlen
Starting Member
1 Posts |
Posted - February 05 2004 : 15:53:22
|
Hi,
We are interested in using your services, at an hourly rate. Please get back to us, with fee and availability, if you are available to work on a project.
Sincerely, Anders Ahlen Creative Director Digital Storm Communications [email protected] |
|
|
Jill
VP-CART Super User
USA
249 Posts |
Posted - February 05 2004 : 16:03:31
|
Anders,
Hakan hasn't been around for months and months. But he did leave his test website up for us.
Jill
|
|
|
BAdkins
Starting Member
USA
10 Posts |
Posted - February 05 2004 : 18:14:18
|
What is the point of his mods?
Is it the fact that it displays the username with a greeting and "signout/logoff", etc.
I've had this on my site for a while now. I modified the ASP to support a real logout. Out of the box, VPASP would never really let you log out. If you accepted the cookie in the beginning it would always leave you logged in, etc.
I implemented a fairly simply method to improve this. When you log-off, out delete the cookie. Thus, next time you come back, you will have to log-in, etc.
Have a look and feel free to register, but remember not to purchase anything - besides unless you are near our area, we would not be able to fill the order...:
http://www.daramengineers.com
-Barry Adkins
|
|
|
siraj
VP-CART New User
USA
194 Posts |
Posted - February 05 2004 : 19:02:57
|
If you want a completely logout, then create a hyperlink to shopend.asp?end=1 this will cause a session abandon and all session variables will be reset. This is a total logout. If you just want to reset the detail of the customer and then use shopcustadminlogin.asp?new=yes
Having cookies or not, also you can setup by admin pages xcookielogin set to NO/YES.... GOOD LUCK. SJ.
[email protected]
Edited by - siraj on February 05 2004 19:41:13 |
|
|
BAdkins
Starting Member
USA
10 Posts |
Posted - February 06 2004 : 03:18:18
|
quote:
If you want a completely logout, then create a hyperlink to shopend.asp?end=1 this will cause a session abandon and all session variables will be reset. This is a total logout. If you just want to reset the detail of the customer and then use shopcustadminlogin.asp?new=yes
Having cookies or not, also you can setup by admin pages xcookielogin set to NO/YES.... GOOD LUCK. SJ.
Shopend.asp?end=1 will only log you out for that 1 session. If you have cookies set on, then when you come back to the site, you will be logged in. Give it a try, I think you will find I am right.
I understand that you can "having cookies or not." However, that is not what we wanted. What we wanted was the site to work like most other sites with customer login, etc.
You will see on our site, when you login, and leave that when you return you will be logged in again - if you choose to use a cookie. However, if you logout before you leave, then next time you come to the site you will not be logged in automatically.
We also show a "Welcome Back Yourname" depending on whether you are logged in, and we change the Sign In/Sign Out link depending on whether you are logged in or not.
-Barry
|
|
|
siraj
VP-CART New User
USA
194 Posts |
Posted - February 06 2004 : 10:41:14
|
Hi Badkins, I see what you doing... cool. if dont mid to share the code.. could you please post it in the forum, I am sure there are lots of people will get benefit. GOOD LUCK. SJ.
[email protected] |
|
|
Amanda
Starting Member
USA
15 Posts |
Posted - February 08 2004 : 01:03:02
|
Yes I would like to see the code myself
|
|
|
web-keeper
Starting Member
Australia
1 Posts |
|
hakkatil
VP-CART New User
109 Posts |
Posted - April 05 2004 : 09:58:41
|
Sorry guys. I know it has been long time since my last visit. But I had many things to take care of. SO I AM BACK.
|
|
|
Jill
VP-CART Super User
USA
249 Posts |
Posted - April 05 2004 : 16:12:13
|
Hakan,
Welcome back! A LOT of people have been asking about you!
Jill
|
|
|
hakkatil
VP-CART New User
109 Posts |
Posted - April 17 2004 : 12:49:45
|
You can find my first template and other templates on my new site.
if you have question, please use this form or email me.
|
|
|
BAdkins
Starting Member
USA
10 Posts |
Posted - May 09 2006 : 21:23:40
|
quote: Originally posted by siraj
Hi Badkins, I see what you doing... cool. if dont mid to share the code.. could you please post it in the forum, I am sure there are lots of people will get benefit. GOOD LUCK. SJ.
[email protected]
Okay, so I waited 2 years to give you the code. Here is "MY" code that just formats the "Welcome Back 'userFirstname UserLastname" or it knows you were not previously logged in and offers a login, and does honor the "stay logged in cookie setting" which was not honored in VPASP 5.0.
To accomplish this I had to modify about 6 lines of VPASP code and add about 8 lines of code in all of the following files:
shopcustadminlogin.asp shopsess.asp shopcustomer.asp shopcustomerform.asp shoplogin.asp
I literally just commented out a line, added a couple of "if" conditions to a couple of lines, added an "ExpireCookie" subroutine that was just 1 line long, and added a few lines here and there.
Really this all ammounted to about changing or added not more than 12 lines of code total.
So while I've included "MY" code that shows how I use the modifications, I don't know how I can provide you all the mods to the VPASP files since it affects 5 files.
I don't know if they'll let me post the files, and also for all I know in 5.5 and 6.0 this all works like I coded it in 5.0.
My code follows... Cheers, Barry Adkins
<!--#include file="shop$db.asp"--> <html> <% ' and GetSess("Lastname")<>"" Response.Write "<p style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 9.0pt; font-weight:100"">" If GetSess("Login")<>"" then Response.Write "Welcome back...<br> " Response.Write GetSess("Firstname") & " " & GetSess("Lastname") & "</p>" Response.Write "<a style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 9.0pt; font-weight:100"" href=""shopcustadminlogin.asp?new=yes"">Sign Out</a><br>" else Response.Write "<a style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 10.0pt; font-weight:100"" href=""shopcustadminlogin.asp"">Sign In</a><br>" Response.Write "<a style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 10.0pt; font-weight:100"" href=""shopcustregister.asp"">Register</a><br>" end if Response.Write "<a style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 10.0pt; font-weight:100"" href=""shopcustadmin.asp"">Customer Service</a><br>" Response.Write "<a style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 10.0pt; font-weight:100"" href=""shopcustadmincoupon.asp"">Coupons</a><br>" Response.Write "<a style=""margin-top: 0; margin-bottom: 0; font-family: arial, helvetica; font-size: 10.0pt; font-weight:100"" href=""shopgift.asp"">Gift Certificates</a><br>" %> </html> |
|
|
|
Topic |
|