modif date
This commit is contained in:
parent
e07186fe27
commit
e69073572e
@ -12,7 +12,7 @@ class OrderController extends OrderControllerCore {
|
|||||||
|
|
||||||
$delays = array_keys($products_delay);
|
$delays = array_keys($products_delay);
|
||||||
$date = new DateTime();
|
$date = new DateTime();
|
||||||
$delivery_date = SaleDelay::getDeliveryDate($delays, null, $date);
|
$delivery_date = SaleDelay::getDeliveryDate($delays, null, $date, true);
|
||||||
self::$smarty->assign(array(
|
self::$smarty->assign(array(
|
||||||
'delivery_date' => (!empty($delivery_date)?$delivery_date:null),
|
'delivery_date' => (!empty($delivery_date)?$delivery_date:null),
|
||||||
));
|
));
|
||||||
|
@ -222,10 +222,14 @@
|
|||||||
<h4>{$details.title}
|
<h4>{$details.title}
|
||||||
{if isset($delivery_date)}
|
{if isset($delivery_date)}
|
||||||
{foreach from=$delivery_date item=date key=key}
|
{foreach from=$delivery_date item=date key=key}
|
||||||
{if $k == $key}
|
{if $k==1 && $k==$key}
|
||||||
<span>
|
<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>
|
- {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>
|
</span>
|
||||||
|
{elseif $k==5 && $k==$key}
|
||||||
|
<span>
|
||||||
|
- {l s='Livraison prévue avant le'} <strong>{l s='24/12'}</strong>
|
||||||
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user