Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 catmemo for cats with sub-cats
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cwalters
Starting Member

38 Posts

Posted - February 09 2009 :  16:09:22  Show Profile  Reply with Quote
Does nayon know how to have the catmemo display in category pages below the sub-category links?

I would like to have my category pages display as follows:

CATEXTRA

subcat1 subcat2 subcat3

CATMEMO

when I do this the only catmemo's that are display are under and for the individual sub-categories.

Any ideas

cwalters
Starting Member

38 Posts

Posted - February 10 2009 :  16:29:12  Show Profile  Reply with Quote
I received this from support and it's absolutely fantastic. Special kudos to Angelo.

To add CATMEMO text after the sub-category list, please follow these steps:

1. Open shopdisplaycategories.asp using text editor (eg. Notepad).

2. Locate the following code:
(around line 55)

dim categoryid

3. Below that code, add the following code:

dim categorymemo,query

If getconfig("xDisplayCategoryImages")="Yes" or getconfig("xdisplaycategoryfiles")="Yes" Then
query = "select * from categories where categoryid = " & highercategoryid
set rs = dbc.execute(query)
If not rs.EOF Then
categoryMemo = rs("catmemo")
end if
closerecordset rs
else
exit sub
end if

4. Locate the following code:
(around line 128)

response.write "</table>"

5. Below that code, add the following code:

if getconfig("xdisplaycategoryfiles")="Yes" and categoryMemo <> "" then
response.write CategoryMemo
end if

6. Save the file and check your website to see the changes.
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