45 lines
2.5 KiB
Smarty
45 lines
2.5 KiB
Smarty
{assign var=$products value=$cart->getProducts()}
|
|
<div id="blockordersummary">
|
|
<div class="content">
|
|
<h4>{l s='Summary of my order' mod='blockordersummary'}</h4>
|
|
<div class='my-cart'>
|
|
<h5>{l s='My cart' mod='blockordersummary'}</h5>
|
|
<ul>
|
|
{foreach $products as $product}
|
|
<li>{$product.quantity} x {$product.name|truncate:18:'…'} <span class="price">{convertPrice price=$product.total_wt}</span></li>
|
|
{/foreach}
|
|
</ul>
|
|
<p>{l s='Products total' mod='blockordersummary'} <span class="price price_total">{convertPrice price=$cart->getOrderTotal(TRUE, 1)}</span></p>
|
|
{if {$cart->getOrderTotal(TRUE, 2) != 0}}<p>{l s='Discounts total' mod='blockordersummary'} <span class="price price_total">{convertPrice price=$cart->getOrderTotal(TRUE, 2)}</span></p>{/if}
|
|
</div>
|
|
<div>
|
|
<h5>{l s='Shipping' mod='blockordersummary'}</h5>
|
|
<p class="carrier-info"><span class='carrier-name'>{$carrier_name}</span> <span class="price price_total">{convertPrice price=$cart->getOrderTotal(TRUE, 5)}</span></p>
|
|
</div>
|
|
<div>
|
|
<h5>{l s='Delivery delays' mod='blockordersummary'}</h5>
|
|
<p class="delivery-delay">{$delay_name}</p>
|
|
{if isset($delivery_date)}
|
|
{foreach from=$delivery_date key=k item=date}
|
|
{if $k == 1}
|
|
<p class="delivery-date">
|
|
{l s='Date de réception prévue entre le' mod='blockordersummary'} <strong>{$date.date_start|date_format:'%d/%m/%Y'}</strong> {l s='et le' mod='blockordersummary'} <strong>{$date.date_end|date_format:'%d/%m/%Y'}</strong>
|
|
</p>
|
|
{elseif $k == 5}
|
|
<p class="delivery-date">
|
|
{l s='Livraison prévue avant le' mod='blockordersummary'} <strong>{l s='24/12' mod='blockordersummary'}</strong> </strong>
|
|
</p>
|
|
{/if}
|
|
{/foreach}
|
|
{/if}
|
|
</div>
|
|
<div>
|
|
<h5>{l s='My shipping address' mod='blockordersummary'}</h5>
|
|
<p class="address">{$order_address}</p>
|
|
</div>
|
|
<div>
|
|
<h5>{l s='My payment' mod='blockordersummary'}</h5>
|
|
<p class="order_total">{l s='Total to pay' mod='blockordersummary'} <span class="price price_total">{convertPrice price=$cart->getOrderTotal(TRUE)}</span></p>
|
|
</div>
|
|
</div>
|
|
</div> |