VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497
Live Chat

Adding Close Shop link back into short cuts for version 6.50

Adding Close Shop link back into short cuts for version 6.50

You can add the Close Shop short cut back into the admin or any other short cut using the following changes.

Make sure you make a back up of your files first before proceeding!

Open shopheaders.asp

Locate the following sub routine:

Sub ShowShortcuts

Within the sub locate the following:

<%shortrs.movenext
wend
%>

Add the following code on a new line after the closing ASP tag:

<% if UserTableAccess(getsess("shopadmin"), "configuration") then %>
<tr>
<td width="15%"><img src="images/admin/left/left_icoclose.gif" width="15" height="16" /></td>
<td width="85%" class="toplinks">
<% 'if has access to config table then %>
<form action="shopa_configsystem.asp?group=search" method="post" name="closed" id="closed">
<input type="hidden" name="keyword" value="xshopclosed" />
<a href="javascript:document.closed.submit();">
<% if getconfig("xshopclosed") = "Yes" then %>
Open Shop
<% else %>
Close Shop For Maintenance
<% end if %>
</a>
</form>
<% 'end if %>
</td>
</tr>
<% 'VP-ASP 6.08a
else %>
<form name="closed" id="closed"></form>
<% end if %>

Below this locate:


<%closerecordset shortrs
shopclosedatabase shortdbc
else
%>

Add on a new line underneath the following:


<% if UserTableAccess(getsess("shopadmin"), "configuration") then %>
<tr>
<td width="15%"><img src="images/admin/left/left_icoclose.gif" width="15" height="16" /></td>
<td width="85%" class="toplinks">
<% 'if has access to config table then %>
<form action="shopa_configsystem.asp?group=search" method="post" name="closed" id="closed">
<input type="hidden" name="keyword" value="xshopclosed" />
<a href="javascript:document.closed.submit();">
<% if getconfig("xshopclosed") = "Yes" then %>
Open Shop
<% else %>
Close Shop For Maintenance
<% end if %>
</a>
</form>
<% 'end if %>
</td>
</tr>
<% 'VP-ASP 6.08a
else %>
<form name="closed" id="closed"></form>
<% end if %>

Save and test.


Times Viewed:
2680
Added By:
Cam Flanigan
Date Created:
3/17/2007
Last Updated:
3/18/2007
Back Search other topics Submit a Ticket