12792 - display delivery dates range in right block in order pages
This commit is contained in:
parent
79bc51c044
commit
b1c1758f3d
@ -119,7 +119,17 @@ class BlockPaymentLogo extends Module
|
||||
}
|
||||
|
||||
public function hookRightColumn($params)
|
||||
{
|
||||
{
|
||||
if (isset($this->context->cart) && $this->context->cart instanceof Cart) {
|
||||
$period = SaleCore::getDeliveryRangeDates($this->context->cart);
|
||||
if (is_array($period)) {
|
||||
$this->smarty->assign('delivery_date_start', $period['start']->format('d/m/Y'));
|
||||
$this->smarty->assign('delivery_date_end', $period['end']->format('d/m/Y'));
|
||||
}
|
||||
elseif ($period == SaleCore::DATE_RANGE_OTHER_DELAY) {
|
||||
$this->smarty->assign('is_other_delay', true);
|
||||
}
|
||||
}
|
||||
return $this->display(__FILE__, 'blockpaymentlogo-right.tpl');
|
||||
}
|
||||
|
||||
|
@ -33,18 +33,33 @@
|
||||
<div class="block-info-advantage">
|
||||
<div class="container-info">
|
||||
<div class="box-dashed">
|
||||
<div class="pastille">{l s='Vos avantages' mod='blockpaymentlogo'}</div>
|
||||
<div class="pastille">{l s='Délais livraison' mod='blockpaymentlogo'}</div>
|
||||
<div>
|
||||
<br />
|
||||
<ul>
|
||||
{if isset($delivery_date_start) && isset($delivery_date_end)}
|
||||
<li>
|
||||
{l s='Vous serez livré entre le :' mod='blockpaymentlogo'}
|
||||
<br />
|
||||
<br /><strong>{$delivery_date_start}</strong>
|
||||
<br />{l s='et le' mod='blockpaymentlogo'}
|
||||
<br /><strong>{$delivery_date_end}</strong>
|
||||
</li>
|
||||
{elseif isset($is_other_delay) && $is_other_delay}
|
||||
<li>{l s='Nous mettons tout en oeuvre pour expédier vos produits sous 48H' mod='blockpaymentlogo'}</li>
|
||||
{else}
|
||||
<li>
|
||||
{l s='Livraison 15 à 35 jours pour les produits ventes privées.' mod='blockpaymentlogo'}
|
||||
</li>
|
||||
<li>
|
||||
{l s='Livraison express disponible pour les paniers composés exclusivement de produits marqués du symbole "48H".' mod='blockpaymentlogo'}
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
{l s='Profitez des nouveautés de marques prestigieuses avant tout le monde' mod='blockpaymentlogo'}
|
||||
</li>
|
||||
<li>
|
||||
{l s='Mixez plusieurs marques dans un seul panier et ne payez qu\'un seul frais de port' mod='blockpaymentlogo'}
|
||||
</li>
|
||||
<li>
|
||||
{l s='Vous avez 14 jours pour changer d\'avis' mod='blockpaymentlogo'}
|
||||
{l s='Les frais de port sont calculés définitivement à l\’étape "LIVRAISON".' mod='blockpaymentlogo'}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user