![]() |
Login and logout information |
Post Reply ![]() |
Author | |
john123 ![]() Newbie ![]() Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 03-August-2008 at 8:18am |
Hi,
This is probably a stupid question but I think I will ask it anyway...
I want to add this customer welcome and logout information on pages. I found the information here:
<div class="footernav" id="myAccount">
<div align="right">Welcome <% ' Display Name of customer if logged in if session("idCustomer")="0" or session("idCustomer")="" then%> Guest!<br> <% else %> <strong><%=session("pcStrCustName") & "!"%><br> <a href="custPref.asp">Your Account</a> /</span> <a href="CustLO.asp">Log Out</a> <% end if %> <% ' If the customer is not an affiliate and is not logged in ' show a link to the registration page. if session("idCustomer")="0" or session("idCustomer")="" then%> <a href="custPref.asp">Login</a> /</span > <a href="custPref.asp">Register</a> <% end if %> </div> </div> I have integrated PC with my exisitng HTML website. Is there any way of having this information consistent on my site or does this code only work in the database or shopping cart?
John
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi John,
None of that code accesses the DB, it's just reading session variables, BUT session variables are server side only and the code is VBScript, so it won't work within an HTML page. |
|
![]() |
|
john123 ![]() Newbie ![]() Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Hi Hamish,
It does work when I add the code in my header.asp. I also want to add it to my other pages that are outside of the shopping cart. Is there anything I can do?
Does this make sense?
John
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi John,
When I say HTML pages I mean classic HTML pages (ending in .HTML or .HTM). ASP pages such as those in Product Cart will work OK as they will process the VBscript on the server. I think a possible solution to this would be to use some AJAX code, although it would involve some custom coding & is not something I'm very familiar with. If you want to have a go at this try googling for "classic asp ajax session" or some similar search - Or ask the Product Cart developer community for a custom solution. |
|
![]() |
|
john123 ![]() Newbie ![]() Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Hi Hamish,
Thanks for the info. Another question...
After a customer is in the shopping cart, is there a way to display account menu information such as the logout or view previous orders?
john
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi John,
Do you mean like is shown on page pc/CustPref.asp ? It has links to :- * Start Shopping * View Previous Orders * Modify Personal Information * Manage Delivery Addresses * View Saved Products * Contact Us * Logout |
|
![]() |
|
john123 ![]() Newbie ![]() Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Hi Hamish,
Yes. I just realized that from within the shopping cart pages, there is no link for the menu.
John
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |