Author |
Topic |
|
Cam
VP-CART Super User
Australia
361 Posts |
Posted - April 03 2003 : 09:53:36
|
I am not sure if this has been dealt with here before but this is the way we are now viewing the shopage_header and shopage_trailer references.
The way the header and footer files are set up is a trifle confusing for beginners as trying to view them in Dreamweaver and Frontpage is difficult if you are not an expert at coding.
I have made a change to the way thay you use the template files recently and will be including it in the new YourVirtualStore version that is due soonish.
Basically what you need to do is as follows:
Back up your shop$db.asp file first and your header and footer files in case you make a mistake.
1/.
Open shoppage_header.htm and shoppage_trailer.htm.
At the very top of the shoppage_trailer.htm file insert the following:
<!-- SHOPPAGE_TRAILER STARTS HERE -->
At the very bottom of the shoppage_header.htm file insert the folloowing:
<!-- SHOPPAGE_HEADER ENDS HERE -->
2/.
Now copy all of the content from shoppage_trailer.htm and paste at the bottom of shoppage_header.htm and save the changed file as follows:
tmp_defaulttemplate.asp
Close your shoppage_trailer.htm as the new file is going to be the new display template file.
You will notice that if you have set it up correctly you should be able to see it in the design view screen with Dreamweaver and Frontpage.
3/. At the very top insert the following before the opening <html> tag:
<% Sub shoppageheader_template %>
Now go to the where the comments are for the the shoppage_header file ending and insert the following in the middle of the 2 comments:
<% end sub Sub shoppagetrailer_template %>
At the very bottom of the page insert the following after the closing html tag:
<% end sub %>
Save your file.
4/.
Now open shop$db.asp and add the following include at the top of the page with the other includes:
<!-- #include file="tmp_defaulttemplate.asp"-->
5/.
Now locate the references to the header and trailer includes around line 300 or so:
' By change the shoppage_header and trailer you can make shop look specific to your merchant Sub ShopPageHeader %> <!-- #include file="shoppage_header.htm" --> <% end sub Sub ShopPageTrailer %> <!-- #include file="shoppage_trailer.htm" --> <% end sub
You need to change this reference to reads as follows:
' By change the shoppage_header and trailer you can make shop look specific to your merchant Sub ShopPageHeader_Archive %> <!-- #include file="shoppage_header.htm" --> <% end sub Sub ShopPageTrailer_Archive %> <!-- #include file="shoppage_trailer.htm" --> <% end sub '=================================== 'YourVirtualStore code - allows the use of one file for the shoppage header and footer files '=================================== Sub ShopPageHeader shoppageheader_template end sub Sub ShopPageTrailer shoppagetrailer_template end sub '===================================
Save your file.
6/.
Upload and test.
You can now very simply create a new look for your site using the WYSIWYG interface of Dreamweaver and Fontpage.
Cheers, Cam
************************************* Cam Flanigan YourVirtualStore Sales e-mail: [email protected] web: http://www.yourvirtualstore.net Build you own YourVirtualStore!!! www.yourvirtualstore.net *************************************
Edited by - cam on April 03 2003 09:56:01
Edited by - cam on April 03 2003 09:58:28 |
|
WebCultivator
Starting Member
USA
2 Posts |
Posted - August 29 2003 : 17:42:04
|
Hi Cam,
I don't see the code described under #5.
I don't see: ' By change the shoppage_header and trailer you can make shop look specific to your merchant Sub ShopPageHeader %> <!-- #include file="shoppage_header.htm" --> <% end sub Sub ShopPageTrailer %> <!-- #include file="shoppage_trailer.htm" --> <% end sub
I instead see: ' By change the shoppage_header and trailer you can make shop look specific to your merchant '******************************* Sub ShopCancelOrder ' called on cancel or when finished with order SetSess "CartCount",0 SetSess "oid","" SetSess "orderid","" SetSess "smprice", "" SetSess "taxes", "" 'If GetSess("Login")= "" then ' SetSess "Lastname","" 'end if SetSess "Giftid","" SetSess "GiftCertificate","" SetSess "Giftcount","" SetSess "GiftAmountMax","" SetSess "GiftAmountUsed","" SetSess "CouponDiscount","" SetSess "Coupon","" setsess "shipmessage","" End Sub
Could the prob be that I'm using VP-ASP 5 instead of 4.5? Any suggestion on how to finish the Dreamweaver fix with v5?
TIA!
Edited by - webcultivator on August 29 2003 17:42:58 |
|
|
Habitue
VP-CART New User
USA
90 Posts |
Posted - August 29 2003 : 18:12:54
|
Though I can't expand on how to this for version 5.00, I know that the code you have listed:
Sub ShopPageHeader %> <!-- #include file="shoppage_header.htm" --> <% end sub Sub ShopPageTrailer %> <!-- #include file="shoppage_trailer.htm" --> <% end sub
is listed in shopheaders.asp
~Habitue~
---------------------------------- "I've heard that it's good to think before you speak..." - TBC
Edited by - Habitue on August 29 2003 18:14:18 |
|
|
WebCultivator
Starting Member
USA
2 Posts |
Posted - August 29 2003 : 23:55:50
|
Thanks, Habitue. You are right about that code being in shopheaders.asp. Not sure what that means for trying to follow Cam's instructions for replacing code in shop$db.asp. (I'm confused - lots of this is going right over my head. )
|
|
|
Habitue
VP-CART New User
USA
90 Posts |
Posted - August 30 2003 : 02:52:37
|
The solution that Cam offers are for those having issues working on VS-ASP with Dreamweaver or Frontpage. Its a nice tip that helps those that can't read code very well.
All my work on VP-ASP has been with Dreamweaver, with no issues, but believe me, "lots of this" goes over my head also. But many helpful threads are posted that helped me, or at least pointed me at the right direction.
Peace,
~Habitue~
---------------------------------- "I've heard that it's good to think before you speak..." - TBC |
|
|
jackbox
VP-CART New User
United Kingdom
72 Posts |
Posted - October 14 2008 : 14:07:36
|
Still prefer this way of setting template up and got to grips with shopheaders.asp file ok.
Works great till you get to shopcustomer.asp and then i lose footer and 'next' buttin. Any ideas? |
|
|
|
Topic |
|