Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Sub Categories
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

maxq
Starting Member

12 Posts

Posted - March 22 2008 :  10:13:38  Show Profile  Visit maxq's Homepage  Reply with Quote
I may be missing something but I have categories with sub categories in my navigation tree.
When I click on the category it goes to shopdisplayproducts.asp but doesn't show the subcategories there (which I presumed it would)
Is this an easy fix?

Can't see to find it in the manual.
Thanks

saki
VP-CART New User

82 Posts

Posted - March 22 2008 :  11:51:40  Show Profile  Reply with Quote
I would like to know this also! It's a real pain having an "sither" subs or products display.

There should be ONE with sub-category display followed with products all on the same page.
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - March 22 2008 :  14:22:32  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page

saki
VP-CART New User

82 Posts

Posted - March 22 2008 :  22:04:10  Show Profile  Reply with Quote
But that still has a links on to EITHER shopdisplaycategories.asp OR
shopdisplayproducts.asp

I'm lookin to have the shopdisplayproducts.asp page display sub categories displayed at the top and the products below.

Visitors to a site DO NOT get the two links to MORE categories OR the products in that category. There needs to be JUST ONE page.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00