Files
BiveEngine/playarea/templates/checkout/price.php
2025-12-24 19:19:01 +03:00

27 lines
1.3 KiB
PHP

<?php
global $cart;
$cart_info = $cart->cart_total_price();
?>
<div class="checkout-form__totals checkout-totals">
<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($cart_info["regular_sum"], 2, ',', ' '); ?> ₽</del>
</p>
<p class="product-wrapper__newprice checkout-totals__newprice col-auto">
<?= number_format($cart_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($cart_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($cart_info["final_sum"], 2, ',', ' '); ?> ₽</p>
</div>
</div>