ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Long Description on Home Page Featured
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Long Description on Home Page Featured

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


Joined: 13-November-2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dccreatives Quote  Post ReplyReply Direct Link To This Post Topic: Long Description on Home Page Featured
    Posted: 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?
Back to Top
whizzinpc View Drop Down
Newbie
Newbie
Avatar

Joined: 17-January-2006
Location: California
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote whizzinpc Quote  Post ReplyReply Direct Link To This Post Posted: 28-September-2011 at 1:46am
maybe try pDescription
Back to Top
joshs View Drop Down
Newbie
Newbie


Joined: 07-April-2009
Location: Utah
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote joshs Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dccreatives View Drop Down
Newbie
Newbie


Joined: 13-November-2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dccreatives Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 28-September-2011 at 4:02pm
Hi,
  Try looking at "Public Sub pcs_FeaturedProducts" in HomeCode.asp. 
Back to Top
dccreatives View Drop Down
Newbie
Newbie


Joined: 13-November-2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dccreatives Quote  Post ReplyReply Direct Link To This Post 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?
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.