modif date

This commit is contained in:
Marion Muszynski 2016-07-25 12:19:36 +02:00
parent e07186fe27
commit e69073572e
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class OrderController extends OrderControllerCore {
$delays = array_keys($products_delay);
$date = new DateTime();
$delivery_date = SaleDelay::getDeliveryDate($delays, null, $date);
$delivery_date = SaleDelay::getDeliveryDate($delays, null, $date, true);
self::$smarty->assign(array(
'delivery_date' => (!empty($delivery_date)?$delivery_date:null),
));

View File

@ -222,10 +222,14 @@
<h4>{$details.title}
{if isset($delivery_date)}
{foreach from=$delivery_date item=date key=key}
{if $k == $key}
{if $k==1 && $k==$key}
<span>
- {l s='Date de réception prévue entre le'} <strong>{$date.date_start|date_format:'%d/%m/%Y'}</strong> {l s='et le'} <strong>{$date.date_end|date_format:'%d/%m/%Y'}</strong>
</span>
{elseif $k==5 && $k==$key}
<span>
- {l s='Livraison prévue avant le'} <strong>{l s='24/12'}</strong>
</span>
{/if}
{/foreach}
{/if}