27 lines
1.4 KiB
PHP
27 lines
1.4 KiB
PHP
<?php
|
|
|
|
$purchase = $variables["purchase"];
|
|
$purchase_info = $purchase->order_total_price();
|
|
|
|
?>
|
|
<div class="checkout-form__totals checkout-totals checkout-totals_thanks">
|
|
<div class="checkout-totals__box row align-items-center justify-content-between">
|
|
<p class="name col">Сумма товаров</p>
|
|
<span class="checkout-totals__prices col-auto row align-items-center justify-conrent-end">
|
|
<p class="product-wrapper__oldprice col-auto">
|
|
<del><?= number_format($purchase_info["regular_sum"], 2, ',', ' '); ?> ₽</del>
|
|
</p>
|
|
<p class="product-wrapper__newprice checkout-totals__newprice col-auto">
|
|
<?= number_format($purchase_info["total_sum"], 2, ',', ' '); ?> ₽
|
|
</p>
|
|
</span>
|
|
</div>
|
|
<div class="checkout-totals__box row align-items-center justify-content-between">
|
|
<p class="name col">Итоговая скидка</p>
|
|
<p class="checkout-totals__newprice col-auto">-<?= number_format($purchase_info["sale_sum"], 2, ',', ' '); ?> ₽</p>
|
|
</div>
|
|
<div class="checkout-totals__box checkout-totals__box_total row align-items-center justify-content-between">
|
|
<p class="name col">Итого</p>
|
|
<p class="checkout-totals__newprice col-auto"><?= number_format($purchase_info["final_sum"], 2, ',', ' '); ?> ₽</p>
|
|
</div>
|
|
</div>
|