php - Adding time on recent orders for woocommerce -


i need add time on account page when customer has placed order through woocommerce.

i need display time right next date of account page on 'recent orders'.

like so:

display example

i know 1 can edit my-orders.php not sure of how in php.

i have fixed this, playing , breaking site, in view-order.php woocommerce has 'display time' 'if' statement time signature on there. in my-orders.php around line 53, in tag replace this:

<?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?> 

with this:

<?php echo date_i18n( __( 'l js \o\f f y, h:ia', 'woocommerce' ), strtotime( $order->order_date ) ); ?> 

this ensure, stated here: http://www.w3schools.com/php/php_date.asp, include day - 'l', in words of 'f y' current year time 'h:ia' or pm.

obvioulsly feature specific if woocommerce business relies on exactitudes, can handy customers , backend.


Comments

Post a Comment

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -