Print Page | Close Window

Insert Short Category Description

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4106
Printed Date: 13-July-2025 at 12:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Insert Short Category Description
Posted By: avalight
Subject: Insert Short Category Description
Date Posted: 29-October-2010 at 12:55am
Hello
I am trying to get the short category description to appear alongside the Category Name whilst using the subcategory display option "In a list, without images".  I found where this code change would need to be added, in the viewCategories.asp file, right after line 440.  I am using v3.51a.
I think I need to insert the code
<%=pcStrCategorysDesc%>
into line 441, but this needs a value somehow attached to it, which is where my investigative skills get derailed.
--
Can anyone have a quick look and see what other line of code I need?
Thanks
Curt




-------------
Curt



Replies:
Posted By: Greg Dinger
Date Posted: 29-October-2010 at 1:12am
Curt - this is almost identical to Brian's thread yesterday.  First you have to make sure that the field you want to use is part of the query in viewCategories.asp.  Next, if that is a new field that you add to the query, you have to capture the value of that field from the recordset - in this case storing the value into a variable named pcStrCategorysDesc. 
 
Carefully clone existing code, recognizing that you are referencing the data in the recordset as an array element.  So you must add this to the end of the original fields being queried, and you have to increment the array index where you store the value into the above variable.  
 
Once you have done that, you can display the field.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: avalight
Date Posted: 29-October-2010 at 3:55pm
I see that the query is including the sDesc, but I will have to assign to the variable pcStrCategorySDesc and do the rest of what you are saying...you make it sound so easy!  NOT!
Seriously, thanks for the help.


-------------
Curt


Posted By: Brett
Date Posted: 13-November-2010 at 6:06pm
Post your viewcategories.asp page here as an attachment and I'll make the modifications for you when I have a few minutes.


Posted By: Brett
Date Posted: 29-January-2011 at 7:41am
Did you ever get your short category description to display where you want it, Curt?


Posted By: avalight
Date Posted: 29-January-2011 at 3:08pm
No, I never got this to work.  I just upgraded to v4.1sp1 so now I could look at fixing again.  Is attaching a file to this post what you are talking about? Or a PM?
Thanks
curt



-------------
Curt


Posted By: Brett
Date Posted: 29-January-2011 at 5:29pm
Originally posted by avalight avalight wrote:

HelloI am trying to get the short category description to appear alongside the Category Name whilst using the subcategory display option "In a list, without images"....


Neither a file upload nor a PM is needed. Where exactly are you trying to get it to show up? If I understand you correctly, you want to show the short description for all of the sub categories when viewing them on the parent category's viewcategories.asp page. Is this what you're after?


Posted By: avalight
Date Posted: 15-May-2011 at 12:23am
Brett - I never did get this to work.  I am now using v4.1sp1a.  Yes, you are right, I want the short description to appear in the subcategories, under the subcategory name.  Line 502 or so.

-------------
Curt


Posted By: avalight
Date Posted: 15-May-2011 at 12:45am
Actually, I found it, in the pcShowCategoriesH.asp file.  Got it to work.

-------------
Curt



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net