2016-07-08 17:51:48 +02:00
{ assign var = $products value = $cart - > getProducts ( ) }
<div id="blockordersummary">
2016-07-12 14:50:52 +02:00
<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 }
2016-07-13 15:16:48 +02:00
<li> { $product.quantity } x { $product.name | truncate : 1 8 : '…' } <span class="price"> { convertPrice price = $product.total_wt } </span></li>
2016-07-08 17:51:48 +02:00
{ /foreach }
2016-07-12 14:50:52 +02:00
</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>
2016-07-25 11:17:40 +02:00
<p class="carrier-info"><span class='carrier-name'> { $carrier_name } </span> <span class="price price_total"> { convertPrice price = $cart - > getOrderTotal ( TRUE , 5 ) } </span></p>
2016-07-12 14:50:52 +02:00
</div>
<div>
<h5> { l s = 'Delivery delays' mod = 'blockordersummary' } </h5>
2016-07-13 15:35:00 +02:00
<p class="delivery-delay"> { $delay_name } </p>
2016-07-25 11:23:29 +02:00
{ * if isset ( $delivery_date ) }
2016-07-25 10:51:39 +02:00
{ foreach from = $delivery_date key = k item = date }
{ if $k = = 1 }
2016-07-15 12:26:58 +02:00
<p class="delivery-date">
2016-07-25 10:51:39 +02:00
{ 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>
2016-07-15 12:26:58 +02:00
</p>
2016-07-25 10:51:39 +02:00
{ 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 }
2016-07-15 12:26:58 +02:00
{ /foreach }
2016-07-25 11:23:29 +02:00
{ /if * }
2016-07-12 14:50:52 +02:00
</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>
2016-07-08 17:51:48 +02:00
</div>
</div>