Initial commit
This commit is contained in:
27
playarea/templates/checkout/price.php
Normal file
27
playarea/templates/checkout/price.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user