![]() |
Insert Short Category Description |
Post Reply
|
| Author | |
avalight
Newbie
Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Insert Short Category DescriptionPosted: 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
-- Can anyone have a quick look and see what other line of code I need? Thanks Curt |
|
Curt
|
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
avalight
Newbie
Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Brett
Groupie
Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Brett
Groupie
Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
Quote Reply
Posted: 29-January-2011 at 7:41am |
|
Did you ever get your short category description to display where you want it, Curt?
|
|
![]() |
|
avalight
Newbie
Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Brett
Groupie
Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
Quote Reply
Posted: 29-January-2011 at 5:29pm |
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? |
|
![]() |
|
avalight
Newbie
Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
avalight
Newbie
Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 15-May-2011 at 12:45am |
|
Actually, I found it, in the pcShowCategoriesH.asp file. Got it to work.
|
|
Curt
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |