Print Page | Close Window

Short description

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=1829
Printed Date: 23-April-2025 at 2:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Short description
Posted By: katharina
Subject: Short description
Date Posted: 18-July-2008 at 12:00am
Is there an easy way of having the short description showing up in the shopping cart along with the product title when a customer adds a product to the cart?  Same for the invoice.
Katharina



Replies:
Posted By: Greg Dinger
Date Posted: 18-July-2008 at 12:21am
I have not tested this, but I think it is accurate.  Someone correct me if you see a flaw.
 
Search viewcart.asp for "<% ' Get product image and sku"
 
Directly below that comment is a SQL query.  First add the column name (description) to that query. 
 
Then look for the 2nd instance of <% If Session("Cust_BuyGift")="" Then %> and you will see the link to viewPrd.asp.  Edit that code to display the new description field you just pulled from the db.
 
Can't look for the invoice equivalent at the moment, but hope the above gets you going in the right direction?


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: katharina
Date Posted: 18-July-2008 at 2:07pm
I've found this info in the EI developer's corner.
http://www.earlyimpact.com/productcart/support/code_samples/Display_short_description.txt - http://www.earlyimpact.com/productcart/support/code_samples/Display_short_description.txt
===========================================================================

Show the short product description on the View Cart and Order Summary page:

===========================================================================
===========================================================================

View Cart page (pc/viewCart.asp)

Add the following ASP code right before the line that reads (~ line 147):

<% 'BTO ADDON-S


ASP code to add:

<% 'Show short product description
call opendb()
mySQL="SELECT idproduct, sDesc FROM products WHERE idproduct=" & trim(pcCartArray(f,0))
set rsDesc=conntemp.execute(mySQL)
psDesc=rsDesc("sDesc")
if psDesc <> "" then %>
<tr>
<td>&nbsp;</td>
<td><font size="2" face="<%=FFType%>" color="<%=FColor%>">
<%=psDesc%></font></td>
<td colspan="3"></td>
</tr>
<% End if
call closeDb()
set rsDesc=nothing
'End show short product description %>

I've tried it, but it does not work in 3.11 with SQL. I'm not a programmer, so I would need the complete code and where to paste it.
I appreciate any help,
Katharina


===========================================================================




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