Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Login Logout: How to get rid of this
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peter2004
Starting Member

1 Posts

Posted - April 30 2006 :  04:59:10  Show Profile  Reply with Quote
The home page top right shows login.
The shopcustomer.asp shows Login Logout.

I have configured out all of theses types of fileds in the shop config Customer. How do I get rid of these showing?

Help please?

Peter

support
Administrator

4679 Posts

Posted - April 30 2006 :  15:09:47  Show Profile  Visit support's Homepage  Reply with Quote
Hi There Peter,

While many options in VP-ASP can be controlled by altering your sites configuration options, at times it is necessary to alter the code a little also to achieve your desired functionality.

VP-ASP is open source and because of this, it makes modifications like this one quite easy.

To remove the login/logout switch from the header when at shopcustomer.asp please do the following

In shoppage_header.htm you will find

<td align="center" nowrap><a href="shopcustadmin.asp<%addSession%>"><%=getLang("langHeadMyAccount")%></a></td>
<td align="center">|</td>
<td align="center"><%loginlogouttoggle%></td>
<td align="center">|</td>
<td align="center"><a href="<%getconfig("xmysite")%>shopaddtocart.asp<%addSession%>"><%=getLang("langcommoncheckout")%></a> </td>

Replace this with
<td align="center" nowrap><a href="shopcustadmin.asp<%addSession%>"><%=getLang("langHeadMyAccount")%></a></td>
<td align="center">|</td>
<%loginlogouttoggle%>
<td align="center"><a href="<%getconfig("xmysite")%>shopaddtocart.asp<%addSession%>"><%=getLang("langcommoncheckout")%></a> </td>

Now open shopproductsubs.asp. In this file locate approximately lines 1697 to 1703. This is the loginlogouttoggle sub routine

Sub loginlogouttoggle
if Getsess ("lastname") > "" then%>
<a href="shopcustadminlogin.asp?new=yes" class="small-black-text"><%=getLang("langcommonlogout")%></a>
<%else%>
<a href="shopcustadminlogin.asp" class="small-black-text"><%=getLang("langcommonlogin")%></a>
<%end if
End sub

Replace the entire sub routine with
Sub loginlogouttoggle
if Getsess("currentURL") <> "shopcustomer.asp" then
if Getsess ("lastname") > "" then %>
<td align="center">
<a href="shopcustadminlogin.asp?new=yes" class="small-black-text"><%=getLang("langcommonlogout")%></a></td>
<td align="center">|</td>
<%else%>
<td align="center">
<a href="shopcustadminlogin.asp" class="small-black-text"><%=getLang("langcommonlogin")%></a></td>
<td align="center">|</td>
<%end if
end if
End sub

VP-ASP is highly flexible, and because changes like this can be made by you, the sky is the limit with what you can do with the software.

Thanks

Dean
VP-ASP Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00