zachary
Starting Member
29 Posts |
Posted - October 12 2011 : 22:55:32
|
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 |
|
|