29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<?php
|
|
use_helper('Helper', 'stOrder', 'stCurrency');
|
|
/**
|
|
* @var Order $order
|
|
*/
|
|
?>
|
|
<table cellspacing="0" cellpadding="4" width="502">
|
|
<?php if ($order->getDiscountCouponCode()) : ?>
|
|
<tr>
|
|
<td align="right"><?php echo __('Kod rabatowy') ?>: <?php echo $order->getDiscountCouponCode()->getCode() ?> (<?php echo $order->getDiscountCouponCode()->getDiscount() ?>%)</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
<?php if ($order->getDiscount()) : ?>
|
|
<tr>
|
|
<td align="right"><?php echo __('Łączna wartość') ?>: <?php echo st_order_price_format($order->getTotalAmountWithDelivery(true, true, false), $order->getOrderCurrency()) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"><?php echo __('Udzielony rabat') ?> (<?php echo $order->getDiscount()->getName() ?>): -<?php echo st_order_price_format($order->getTotalProductDiscountAmount(true, true), $order->getOrderCurrency()) ?></td>
|
|
</tr>
|
|
<?php endif ?>
|
|
<?php if ($order->getPaidAmount() > 0): ?>
|
|
<tr>
|
|
<td align="right"><?php echo __('Zapłacono') ?>: <?php echo st_order_price_format($order->getPaidAmount(), $order->getOrderCurrency()) ?></td>
|
|
</tr>
|
|
<?php endif ?>
|
|
<tr>
|
|
<td align="right"><?php echo __('Razem do zapłaty') ?>: <font size="16"><b><?php echo st_order_price_format($order->getUnpaidAmount(), $order->getOrderCurrency()) ?><?php if ($total_points_value > 0): ?><br /><?php echo $total_points_value . " " . $config_points->get('points_shortcut', null, true); ?><?php endif ?></b></font></td>
|
|
</tr>
|
|
</table>
|