How to display category description in the shopdisplayproducts.asp page

How to display category description in the shopdisplayproducts.asp page

If you wish to display the category description from the Catmemo field in the shopdisplayproducts.asp page in your VP-ASP 7.00, you can follow these steps below :

a. Open file shopdisplayproducts.asp and locate this code :

description = rs("catextra")

b. Directy below it, insert this code :

dim categorytext
categorytext = rs("catmemo")

c. Locate this code :

end sub

' sql is actually created in shopproductcreatesql, it can be complex or it could have been created by search
sub createsql

d. Before the code above, please insert :

htmlwrite "<CENTER><p class=""ac"">" & categorytext & "</p></CENTER>"

e. Save the file and upload to your site..

f. And then you need turn on the config "xdisplaycategoryimages" (set to Yes) to utilize this customisation.
- Go to : Advanced Settings » Software Configuration
- Search for : xdisplaycategoryimages
- Set to Yes.
- Click Continue.

g. Make sure you enter description for each category in the Category Memo field in the Edit Categories page.

h. Go to front store and click the categories pages to see the changes.


Times Viewed:
2438
Added By:
Wilson Keneshiro
Date Created:
3/23/2011
Last Updated:
3/23/2011