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
 Alternate trailer in Shopexd.asp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jayceew
VP-ASP New User

USA
111 Posts

Posted - March 20 2007 :  11:06:16  Show Profile  Reply with Quote
Hi All,
I'm using various headers and trailers thruout my site with no problem, but I can't seem to change the trailer when i'm displaying a product in Shopexd.asp. In the template I see [ADD_ShopTrailer] but I'm not sure what to do to change to another trailer. Can anyone help with this?
Thanks
Jack

jayceew
VP-ASP New User

USA
111 Posts

Posted - March 20 2007 :  23:22:04  Show Profile  Reply with Quote
Hi All,
I found how to change the trailer in Shopexd.asp. In shopfileio.asp around line 704 the sub for the page trailer is this:

Sub Handle_PageTrailer (value, parsearray)
dim templatedisplay
templatedisplay=parsearray(ptemplatedisplay)
Value=""
If TemplateDisplay="No" then exit sub
ShopPageTrailer
end sub

add this sub under it, In this case I used PageTrailernew as the handle,

Sub Handle_PageTrailernew (value, parsearray)
dim templatedisplay
templatedisplay=parsearray(ptemplatedisplay)
Value=""
If TemplateDisplay="No" then exit sub
ShopPageTrailernew
end sub

also had to add this new case under
the original case around line 434 in shopfileio.asp

Case "ADD_PAGETRAILERnew"
Handle_PageTrailernew value, parsearray
rc=0


Now just change the [ADD_PageTrailer] call in your template to the new trailer name. in this case [ADD_PageTrailernew]

Also works with headers

Thanks
Jack

Edited by - jayceew on March 21 2007 23:12:10
Go to Top of Page

jayceew
VP-ASP New User

USA
111 Posts

Posted - March 20 2007 :  23:30:58  Show Profile  Reply with Quote
Hi All Again,

Works perfect

Thanks Again
Jack

Edited by - jayceew on March 21 2007 23:13:01
Go to Top of Page

mxu8808
Starting Member

25 Posts

Posted - March 22 2007 :  11:49:24  Show Profile  Visit mxu8808's Homepage  Reply with Quote
Jack:

How do you name the new trailer?
shop_pagetrailernew.htm?

I can not get it work because I don't know how [ADD_shoptrailernew] at shopexd.asp can find the new trailer file.

Thanks.
Go to Top of Page

jayceew
VP-ASP New User

USA
111 Posts

Posted - March 22 2007 :  12:10:54  Show Profile  Reply with Quote
Hi all,
You must first create new headers and/or trailers and create the appropriate subs in shopheaders.asp ( If you want to change trailer add the ShopPage trailer sub. same precedure though)

this is how to do it In version 6.X, it may work in 5.5 ?

in shopheaders.asp, there is a procedure (sub) called ShopPageHeader. Copy the entire function (to the first place you see 'end sub' and then paste it below. Call this sub 'ShopPageHeader_Default', or whatever you want to call it. Then edit the line in the newly pasted sub that says

%>
<!-- #include file="shoppage_header.htm" -->
<%

change this to the template file you want to use.

Finally, in your default.asp, change the the line
<%shopPageHeader%>

to the name of the sub you just created. Repeat the process for the trailer templates if you like as well.

Then just modify shoppage_header.htm to make it look the way you want and save it as
ShopPageHeader_Default.htm, or whatever you want to call it.


Special Thanks to - craig simons who helped me with this on January 16 2006 11:55:14
Go to Top of Page

mxu8808
Starting Member

25 Posts

Posted - March 22 2007 :  13:30:45  Show Profile  Visit mxu8808's Homepage  Reply with Quote
It works great!
Thanks a lot!
Go to Top of Page

faolie
VP-ASP New User

89 Posts

Posted - April 01 2014 :  08:42:10  Show Profile  Visit faolie's Homepage  Reply with Quote
Nice one Jack, just what I was searching for. Thanks

David Heriot
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000