ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Login and logout information
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Login and logout information

 Post Reply Post Reply
Author
Message
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Topic: Login and logout information
    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
 
 
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 03-August-2008 at 8:36am
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.

Back to Top
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Posted: 03-August-2008 at 1:41pm
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
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 03-August-2008 at 2:51pm
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.
Back to Top
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Posted: 04-August-2008 at 3:25pm
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
 
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 04-August-2008 at 4:00pm
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



Back to Top
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Posted: 04-August-2008 at 4:05pm
Hi Hamish,
 
Yes.  I just realized that from within the shopping cart pages, there is no link for the menu.
 
John
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.