devshb
Senior Member
United Kingdom
1904 Posts |
Posted - March 22 2008 : 14:22:32
|
I've just applied this; it depends which function you use, but if you're using NavigateShowCategorylist in your shoppage_header.htm file and you're on vpasp 6.5, then do this.....
edit shopproductsubs.asp in notepad, and search for:
Sub NavigateShowCategorylist
a few lines below that you'll see this line:
FormatcategoryList categoryid, catdescription, spacing
comment-out that line and add a new one, so that it's like this:
' BYZ: 22-MAR-2008: Changed to use category link for parent categories: 'FormatcategoryList categoryid, catdescription, spacing FormatcategoryListBYZ categoryid,catdescription,spacing,hassubcategory
then, after the line: end sub which is a few lines below that change you just made, add the following new lines:
(NOTE: The forum blanks out html characters, so replace all instances of upper case AMP with an ampersand character (and sign) when you copy/paste the code you see below)....
' BYZ: 22-MAR-2008: New function to use category link for parent categories: Sub FormatcategoryListBYZ(id, name, spacing,arg_in_hassubcategory) dim i If spacing>0 then for i = 0 to spacing response.write "AMPnbsp;AMPnbsp;" next end if if (arg_in_hassubcategory<>"" and IsNull(arg_in_hassubcategory)=false) then response.write "<a href=""shopdisplaycategories.asp?id=" response.write id & "AMPamp;cat=" response.write Server.URLEncode(name) response.write """>" & name response.write "</a>" & "<br />" & vbcrlf else response.write "<a href=""shopdisplayproducts.asp?id=" response.write id & "AMPamp;cat=" response.write Server.URLEncode(name) response.write """>" & name response.write "</a>" & "<br />" & vbcrlf end if end sub
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
Edited by - devshb on March 22 2008 14:33:58 |
|
|