Print Page | Close Window

Long Description on Home Page Featured

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=4760
Printed Date: 12-July-2025 at 8:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Long Description on Home Page Featured
Posted By: dccreatives
Subject: Long Description on Home Page Featured
Date 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?



Replies:
Posted By: whizzinpc
Date Posted: 28-September-2011 at 1:46am
maybe try pDescription


Posted By: joshs
Date 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


Posted By: dccreatives
Date 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.



Posted By: Hamish
Date Posted: 28-September-2011 at 4:02pm
Hi,
  Try looking at "Public Sub pcs_FeaturedProducts" in HomeCode.asp. 


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: dccreatives
Date 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?



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