Merge branch 'ticket-deliveryDelay_cart' into develop
This commit is contained in:
commit
0ccf7667a6
@ -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),
|
||||
));
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user