From bc65ebfe3fcaf648da125ebf4bf8654fb9dfc8ca Mon Sep 17 00:00:00 2001 From: Al Brookbanks Date: Wed, 4 Mar 2015 11:02:31 +0000 Subject: [PATCH] Fixed issue #316 --- classes/cubecart.class.php | 4 +++- skins/foundation/templates/content.receipt.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/cubecart.class.php b/classes/cubecart.class.php index cc146d2c5..7441d0c7a 100755 --- a/classes/cubecart.class.php +++ b/classes/cubecart.class.php @@ -1224,6 +1224,7 @@ private function _complete() { } $order[$key] = $GLOBALS['tax']->priceFormat($value); } + $order['order_date_formatted'] = formatTime($order['order_date']); $GLOBALS['smarty']->assign('SUM', $order); switch ($order['status']) { @@ -2171,7 +2172,6 @@ private function _orders() { if ($order['discount']>0) { $GLOBALS['smarty']->assign('DISCOUNT', true); - } // Loop through price values, and do the formatting @@ -2179,6 +2179,7 @@ private function _orders() { $order[$key] = $GLOBALS['tax']->priceFormat($order[$key], true); } $order['order_status'] = $GLOBALS['language']->order_state['name_'.$order['status']]; + $order['order_date_formatted'] = formatTime($order['order_date']); $GLOBALS['smarty']->assign('SUM', $order); $GLOBALS['smarty']->assign('ORDER', $order); @@ -2317,6 +2318,7 @@ private function _orders() { $order[$key] = $GLOBALS['tax']->priceFormat($order[$key], true); } $order['order_status'] = $GLOBALS['language']->order_state['name_'.$order['status']]; + $order['order_date_formatted'] = formatTime($order['order_date']); $GLOBALS['smarty']->assign('SUM', $order); $GLOBALS['smarty']->assign('ORDER', $order); } diff --git a/skins/foundation/templates/content.receipt.php b/skins/foundation/templates/content.receipt.php index 47edcab42..99fd01ff2 100755 --- a/skins/foundation/templates/content.receipt.php +++ b/skins/foundation/templates/content.receipt.php @@ -11,6 +11,7 @@ *}

{$LANG.orders.order_number}: #{$SUM.cart_order_id}

{$LANG.orders.title_order_status}: {$SUM.order_status}
+
{$LANG.basket.order_date}: {$SUM.order_date_formatted}

{$LANG.basket.customer_info}