Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Page Modification
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pdieppa
VP-CART New User

USA
86 Posts

Posted - October 12 2011 :  18:03:27  Show Profile  Reply with Quote
Hi all

I want to create a new page that contains ONLY the header and footer. Nothing else. No left or right boxes, etc. What is the best way to accomplish this?

Basically it will be a landing page for a promo.

Thanks

PD

zachary
Starting Member

29 Posts

Posted - October 12 2011 :  22:55:32  Show Profile  Reply with Quote
Hi,

below is the solution

1. Create a new .asp file. example: mypromotion.asp
2. insert code below at the top of the file:
<!--#include file="shop$db.asp"-->
<%ShopOpenDatabase dbc%>
<%
ShopPageHeaderWithoutleft
Displaycontent
ShopPageTrailer

sub Displaycontent
htmlwrite "this is the content."
end sub

%>

3. create new file called shoppage_header_no_left.htm, you can copy the code from shoppage_header.htm, that is located in templates/default-2cols or 3cols/, put the new file into the same template folder.
4. Open file shopheaders.asp
5. locate sub ShopPageHeader:
sub ShopPageHeader
if GetConfig("xaffheaders")="Yes" then
dim filename, affid, rc
affid=GetSess("affid")
if affid<>"" then
filename=xMySite2 & "/templates/" & getconfig("xtemplate") & "/aff" & affid &"_header.htm"
Shopspecialheader filename, rc
if rc=0 then exit sub
end if
end if

setsess "fromquickorder",""
'700 - Moving to template
dyninclude xMySite2 & "/templates/" & getconfig("xtemplate") & "/shoppage_header.htm"

etc
etc
.
.
.
untill

end sub

6. copy that whole sub routine mentioned
7. paste into the bottom file of mypromotion.asp before %> tag.
8. rename the new copied sub routine "sub ShopPageHeader" to : Sub ShopPageHeaderWithoutleft
9. locate code : dyninclude xMySite2 & "/templates/" & getconfig("xtemplate") & "/shoppage_header.htm" in Sub ShopPageHeaderWithoutleft
10. change it to dyninclude xMySite2 & "/templates/" & getconfig("xtemplate") & "/shoppage_header_no_left.htm"
11. Save & test run in browser.



hope this is helpful for you.

Thanks
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