ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Change order date to timestamp.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change order date to timestamp.

 Post Reply Post Reply
Author
Message
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post Topic: Change order date to timestamp.
    Posted: 03-March-2014 at 3:52pm
I wanted to be able to see when Incomplete orders are appearing. It looks like SaveOrd.asp creates the initial incomplete order when a customer starts checking out.


'<<==== create date order var====>>
pDateOrder=Date()
if SQL_Format="1" then
     pDateOrder=Day(pDateOrder)&"/"&Month(pDateOrder)&"/"&Year(pDateOrder)
else
     pDateOrder=Month(pDateOrder)&"/"&Day(pDateOrder)&"/"&Year(pDateOrder)
end if

Right after that code I put this to overwrite the variable:
pDateOrder = now()


So far, it hasn't blown anything up. I just created an incomplete order and everything appears the same on the dashboard, but within the database I can actually see the time the incomplete order was created.

Has anyone done this before? Do you forsee any issues?

Edited by Brett - 03-March-2014 at 3:53pm
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 05-March-2014 at 1:36am
This will be fine if you are in the US or using that date format and your server is also in the US.

To add the more detailed time stamp to the date in either format, simply append:
&TIME()

That is:
pDateOrder = pDateOrder &" "&TIME()
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.