![]() |
Long Description on Home Page Featured |
Post Reply
|
| Author | |
dccreatives
Newbie
Joined: 13-November-2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Topic: Long Description on Home Page FeaturedPosted: 27-September-2011 at 1:44pm |
|
How can I add the long description to the Home Page featured products? I was able to add the short description easily, however I need to use that field for something else, so I have the product details in the long description field. I'd like the first sentence or two to be displayed next to the item image with a 'more details' link.
When I add the following code to the pcShowPRoductH.asp page I can get the short description to display, however if I change the psDesc to pDetails, the long description isn't showing up.
<%
response.write "<div class='pcShowProductSDesc' style='padding-top: 5px'>" response.Write psDesc & " <a href='#details'>" & dictLanguage.Item(Session("language")&"_viewPrd_21") & "</a>" response.write "</div>" %> Any ideas?
|
|
![]() |
|
whizzinpc
Newbie
Joined: 17-January-2006 Location: California Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Posted: 28-September-2011 at 1:46am |
|
maybe try pDescription
|
|
![]() |
|
joshs
Newbie
Joined: 07-April-2009 Location: Utah Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 28-September-2011 at 1:19pm |
|
Do both the short and long description fields have content? Typically the long description (rs("details")) has the main description.
|
|
|
Josh Shirley
josh@windsurfutah.com |
|
![]() |
|
dccreatives
Newbie
Joined: 13-November-2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Posted: 28-September-2011 at 1:45pm |
|
This is a bookstore. For some of the items both fields will have content - for some they won't. I ONLY want the long description to be displayed as we will be using the short description as subtitles for books that have them. All items will have a long description, though. |
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 28-September-2011 at 4:02pm |
|
Hi,
Try looking at "Public Sub pcs_FeaturedProducts" in HomeCode.asp. |
|
![]() |
|
dccreatives
Newbie
Joined: 13-November-2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Posted: 03-October-2011 at 9:53am |
|
Do you mean at this area of the code:
'// Get sDesc
query="SELECT sDesc FROM products WHERE idProduct="&pidrelation&";" set rsDescObj=server.CreateObject("ADODB.RecordSet") set rsDescObj=conntemp.execute(query) psDesc=rsDescObj("sDesc") set rsDescObj=nothing I tried to change " psDesc=rsDescObj("sDesc")" to "pDetails" and it didn't work.
Is there anything else that I should be doing?
|
|
![]() |
|
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 |