Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 6.00 Questions
 Display Unfinished Orders
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Habitue
VP-CART New User

USA
90 Posts

Posted - August 25 2003 :  21:23:21  Show Profile  Reply with Quote
( 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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00