Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Order Info - Time Of Order, How to get the time of an order on order pages (info, invoice, etc)
Loren McDonald
post Feb 27 2012, 04:02 PM
Post #1


Enthusiast
***

Group: Members
Posts: 57
Joined: 29-October 10
Member No.: 5,685
Version: 2.1.1, Version Type: eBusiness, Build: Build: 10874, Build Date: Jun 24, 2011


Reputation:   3  


I'm not sure anyone here will be able to help but figured I would give it a go before hitting up the dev team.

Currently all the order pages get the date of the order with the call OrderDate(). This is fine but due to overnight orders I need to know the time an order came in for our cutoff shipping time (it's really more for proof to the buyer that an order was placed too late to ship next day). There is no such thing as OrderTime() but checking the database, the time is stored along with the date.

If anyone knows how to coax out the time of the order along with the date and could pass that tidbit of info on, I would be grateful.
Go to the top of the page
  
+Quote Post
zorgster
post Feb 27 2012, 10:41 PM
Post #2


Newbie
*

Group: Members
Posts: 8
Joined: 21-February 12
From: Peak District, UK
Member No.: 9,795
2.1.1


Reputation:   1  


hi

It's not easy... the Time is stripped in the getOrders function in /avactis-system/modules/checkout/views/checkout-manage-orders-az.php

If you dare, you can alter line 336 [from - to]:

<pre><code>
$order["Date"] = modApiFunc("Localization", "SQL_date_format", $orders[$order_id]['order_date']);

$order["Date"] = modApiFunc("Localization", "SQL_date_format", $orders[$order_id]['order_date'], 'd/m/y H:i');
</code></pre>

(or 'm/d/y H:i' if you use American dates)

I'm not sure if that exports or if it can be ordered, but I now have the times showing up in my list of Orders.

Oliver
Go to the top of the page
  
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 09:06 AM