bebeboutik/modules/blockordersummary/blockordersummary.tpl

32 lines
1.7 KiB
Smarty
Raw Normal View History

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:18:'…'} <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>
<p>{$carrier_name} <span class="price price_total">{convertPrice price=$cart->getOrderTotal(TRUE, 5)}</span></p>
</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-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>