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

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Fixing Dreamweaver/FrontPage WYSIWYG issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cam
VP-ASP Super User

Australia
361 Posts

Posted - April 03 2003 :  09:53:36  Show Profile  Visit Cam's Homepage  Reply with Quote
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  Show Profile  Reply with Quote
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
Go to Top of Page

Habitue
VP-ASP New User

USA
90 Posts

Posted - August 29 2003 :  18:12:54  Show Profile  Reply with Quote
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
Go to Top of Page

WebCultivator
Starting Member

USA
2 Posts

Posted - August 29 2003 :  23:55:50  Show Profile  Reply with Quote
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. )

Go to Top of Page

Habitue
VP-ASP New User

USA
90 Posts

Posted - August 30 2003 :  02:52:37  Show Profile  Reply with Quote
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
Go to Top of Page

jackbox
VP-ASP New User

United Kingdom
72 Posts

Posted - October 14 2008 :  14:07:36  Show Profile  Visit jackbox's Homepage  Reply with Quote
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?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000