<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : CatSalesReport.asp not showing customer name</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Using ProductCart : CatSalesReport.asp not showing customer name]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 20:49:40 +0000</pubDate>
  <lastBuildDate>Sun, 31 Oct 2010 21:01:56 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=4109</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[CatSalesReport.asp not showing customer name : The report does not show customer...]]></title>
   <link>https://forum.productcart.com/catsalesreport-asp-not-showing-customer-name_topic4109_post16037.html#16037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4109<br /><strong>Posted:</strong> 31-October-2010 at 9:01pm<br /><br />The report does not show customer name. Verified on ProductCart demo store.<br /><br />To fix, edit the query on line 145 (v4.1 PPE):<br />query="SELECT DISTINCT orders.idorder,orders.idcustomer,orders.total,orders.shipmentDetails,orders.paymentDetails,orders.taxAmount,orders.discountDetails,orders.orderDate,orders.processDate,orders.shipDate,customers.name,customers.lastName FROM ((ProductsOrdered INNER JOIN Orders ON ProductsOrdered.idOrder=Orders.idOrder) INNER JOIN customers on customers.idcustomer=orders.idcustomer) INNER JOIN Categories_Products ON ProductsOrdered.idProduct=Categories_Products.idProduct WHERE Categories_Products.IDCategory=" & pIDCategory & " AND ((orders.orderStatus&gt;2 AND orders.orderStatus&lt;5) OR (orders.orderStatus&gt;6 AND orders.orderStatus&lt;9) OR (orders.orderStatus=10 OR orders.orderStatus=12)) " & TempSQL1 & TempSQL2 & TempSpecial & " ORDER BY " & tmpD & " DESC;"<br /><br />This stuff was added:<br /><br />,customers.name,customers.lastName FROM ((ProductsOrdered INNER JOIN Orders ON ProductsOrdered.idOrder=Orders.idOrder) INNER JOIN customers on customers.idcustomer=orders.idcustomer)<br /><br />So it will pull customers.name and customers.lastName from the database.<br /><br /><br />Then on line 189:<br /><br />do until rs.EOF<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pc_idorder=rs("idorder")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pc_idcustomer=rs("idcustomer")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pc_orderDate=rs("orderDate")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;custName=rs("name") & " " & rs("lastName")<br /><br />This grabs the database query info and puts it into a variable custName<br /><br /><br />Then on line 259:<br /><br />&lt;td nowrap&gt;&lt;a href="viewCustOrders.asp?idcustomer=&lt;%=pc_idcustomer%&gt;" target="_blank" title="View all orders by this customer"&gt;&lt;%=custName%&gt;&lt;/a&gt;&lt;/td&gt;<br /><br />This shows the previously defined custName variable.<br /><br />]]>
   </description>
   <pubDate>Sun, 31 Oct 2010 21:01:56 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/catsalesreport-asp-not-showing-customer-name_topic4109_post16037.html#16037</guid>
  </item> 
 </channel>
</rss>