ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Insert Short Category Description
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Insert Short Category Description

 Post Reply Post Reply
Author
Message
avalight View Drop Down
Newbie
Newbie


Joined: 21-September-2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote avalight Quote  Post ReplyReply Direct Link To This Post Topic: Insert Short Category Description
    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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
avalight View Drop Down
Newbie
Newbie


Joined: 21-September-2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote avalight Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post Posted: 29-January-2011 at 7:41am
Did you ever get your short category description to display where you want it, Curt?
Back to Top
avalight View Drop Down
Newbie
Newbie


Joined: 21-September-2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote avalight Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
avalight View Drop Down
Newbie
Newbie


Joined: 21-September-2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote avalight Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
avalight View Drop Down
Newbie
Newbie


Joined: 21-September-2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote avalight Quote  Post ReplyReply Direct Link To This Post Posted: 15-May-2011 at 12:45am
Actually, I found it, in the pcShowCategoriesH.asp file.  Got it to work.
Curt
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.