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

Short description

 Post Reply Post Reply
Author
Message
katharina View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote katharina Quote  Post ReplyReply Direct Link To This Post Topic: Short description
    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
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: 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?
Back to Top
katharina View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote katharina Quote  Post ReplyReply Direct Link To This Post 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
===========================================================================

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


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

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.063 seconds.