support
Administrator
4679 Posts |
Posted - April 30 2006 : 15:09:47
|
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 |
|
|