ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Daily Sales
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Daily Sales

 Post Reply Post Reply
Author
Message
amgqmp1 View Drop Down
Groupie
Groupie


Joined: 01-November-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote amgqmp1 Quote  Post ReplyReply Direct Link To This Post Topic: Daily Sales
    Posted: 11-March-2010 at 4:10pm
I have been running a PC 2.76 shop for many years, and recently upgraded all the way to 4.
One feature that I'm missing is the ability to quickly see our current daily sales.  Just viewing the sales reports section in 2.76 would provide that data.

Has it been relocated?  If yes, where?  If no, any easy hack to bring it back? Wink
Back to Top
whizzinpc View Drop Down
Newbie
Newbie
Avatar

Joined: 17-January-2006
Location: California
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote whizzinpc Quote  Post ReplyReply Direct Link To This Post Posted: 12-March-2010 at 11:37am
I don't think it can be found anywhere unless you run a report. We added it manually. I just modified the code. invoicing.asp look for the following section.
        <% While Not rs.eof
            pTotal=rs("total")
            pIdOrder=rs("idOrder")
            pIdOrder=scpre + int(pIdOrder) %>
            <li><%response.write "Order #: "&pIdOrder&" - Total: "&scCurSign & money(pTotal)%> - <a class="resultslink" href="Orddetails.asp?id=<%=rs("idorder")%>" onFocus="if(this.blur)this.blur()">View details >></a></li>
            <%rs.MoveNext%>
        <%Wend%>
    </ul>
<% end if
Set rs=Nothing %>


and change it to:


        <% While Not rs.eof
            pTotal=rs("total")
            pIdOrder=rs("idOrder")
            pIdOrder=scpre + int(pIdOrder)
            pTotalDay = pTotalDay + pTotal %>
            <li><%response.write "Order #: "&pIdOrder&" - Total: "&scCurSign & money(pTotal)%> - <a class="resultslink" href="Orddetails.asp?id=<%=rs("idorder")%>" onFocus="if(this.blur)this.blur()">View details >></a></li>
            <%rs.MoveNext%>
        <%Wend%>
    </ul>
    <p>Today's total: <% Response.write scCurSign & money(pTotalDay)%><br>
    </p>
<% end if
Set rs=Nothing %>

It basically adds the daily total to this page just below the list of all orders for the day. You get to the page from Orders>Locate an Order.

Edited by whizzinpc - 12-March-2010 at 11:38am
Back to Top
amgqmp1 View Drop Down
Groupie
Groupie


Joined: 01-November-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote amgqmp1 Quote  Post ReplyReply Direct Link To This Post Posted: 12-March-2010 at 12:41pm
You are my hero for the day!  That worked out beautifully, and I'll learn from that code to add it to the home page too.

Thank you! Smile
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.047 seconds.