( I made this work for the version I have, ver.5.0)
If the customer doesn't hit the "cancel order" button and doesn't finish the order, it will still show up in your orders display (if they submit the customer info page). Superal had given this code out before (for ver.4.50, I believe) that displays anything that has an empty ocardtype in red.
Superal also sells a product counter add-on at www.esastrategy.com which includes bar graphing. Thanks goes out to him for the previous code!
original topic:
http://www.vpasp.com/virtprog/vpaspforum/topic.asp?TOPIC_ID=1293
For the color coding (version 5.0):
' In SHOP$COLORS.ASP add:
const ReportDetailRowY="<tr bgcolor='#FF9999'>"
' In SHOPA_DISPLAYORDERS.ASP in Sub GenerateTable add:
dim cardtype
' again, in Sub GenerateTable locate:
DO UNTIL rsorder.eof OR howmanyrecs=maxrecs
orderid=rsorder(idfield)
' change to:
DO UNTIL rsorder.eof OR howmanyrecs=maxrecs
cardtype=rsorder("ocardtype")
orderid=rsorder(idfield)
' once more, in Sub GenerateTable locate:
if processed<>0 then
response.write ReportDetailRowX
else
response.write ReportDetailRow
end if
' change to:
if processed<>0 then
response.write ReportDetailRowX
else
if cardtype <> "" then
response.write ReportDetailRow
else
response.write ReportDetailRowY
end if
end if
----------------------------------
"I've heard that it's good to think before you speak..." - TBC
Edited by - Habitue on August 25 2003 21:47:23