Author |
Topic |
|
jayceew
VP-CART New User
USA
114 Posts |
Posted - March 20 2007 : 11:06:16
|
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-CART New User
USA
114 Posts |
Posted - March 20 2007 : 23:22:04
|
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 |
|
|
jayceew
VP-CART New User
USA
114 Posts |
Posted - March 20 2007 : 23:30:58
|
Hi All Again,
Works perfect
Thanks Again Jack |
Edited by - jayceew on March 21 2007 23:13:01 |
|
|
mxu8808
Starting Member
25 Posts |
Posted - March 22 2007 : 11:49:24
|
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. |
|
|
jayceew
VP-CART New User
USA
114 Posts |
Posted - March 22 2007 : 12:10:54
|
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 |
|
|
mxu8808
Starting Member
25 Posts |
Posted - March 22 2007 : 13:30:45
|
It works great! Thanks a lot! |
|
|
faolie
VP-CART New User
98 Posts |
Posted - April 01 2014 : 08:42:10
|
Nice one Jack, just what I was searching for. Thanks
David Heriot |
|
|
|
Topic |
|