From a1786b97b3203bf385eb7aed8d253cd19bbcc7cb Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 7 Aug 2013 17:08:50 +0200 Subject: [PATCH] [-] FO : expiration date not displayed in email for downloadable product --- classes/order/OrderHistory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/order/OrderHistory.php b/classes/order/OrderHistory.php index bfd5f44f0..f0de14457 100644 --- a/classes/order/OrderHistory.php +++ b/classes/order/OrderHistory.php @@ -125,8 +125,8 @@ class OrderHistoryCore extends ObjectModel .'&id_order='.(int)$order->id .'&secure_key='.$order->secure_key; $assign[$key]['link'] = $dl_link; - if (isset($virtual_product['date_expiration']) && $virtual_product['date_expiration'] != '0000-00-00 00:00:00') - $assign[$key]['deadline'] = Tools::displayDate($virtual_product['date_expiration ']); + if (isset($virtual_product['download_deadline']) && $virtual_product['download_deadline'] != '0000-00-00 00:00:00') + $assign[$key]['deadline'] = Tools::displayDate($virtual_product['download_deadline ']); if ($product_download->nb_downloadable != 0) $assign[$key]['downloadable'] = (int)$product_download->nb_downloadable; }