Initial commit
This commit is contained in:
32
playarea/templates/thanks_order/contact.php
Normal file
32
playarea/templates/thanks_order/contact.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$purchase = $variables["purchase"];
|
||||
$legal = $purchase->purchase->get_prop("legal");
|
||||
|
||||
?>
|
||||
<ul class="thank-wrapper__info thank-wrapper thank-list">
|
||||
<li class="thank-list__item">
|
||||
<h2 class="checkout__heading thank-list__heading">Получатель:</h2>
|
||||
<p><?= $b->get_view($legal == 1 ? $purchase->purchase->get_prop("name") : $purchase->purchase->get_prop("legal_name")); ?></p>
|
||||
</li>
|
||||
<li class="thank-list__item">
|
||||
<h2 class="checkout__heading thank-list__heading">Контактный телефон</h2>
|
||||
<a href="#"><?= $b->get_view($purchase->purchase->get_prop("phone")); ?></a>
|
||||
</li>
|
||||
<li class="thank-list__item wide">
|
||||
<h2 class="checkout__heading thank-list__heading">Адрес</h2>
|
||||
<p><?= $b->get_view($purchase->purchase->get_prop("address_street")); ?></p>
|
||||
</li>
|
||||
<li class="thank-list__item">
|
||||
<h2 class="checkout__heading thank-list__heading">Способ доставки</h2>
|
||||
<p><?= $b->get_view($purchase->purchase->get_prop("shipping_method")); ?></p>
|
||||
</li>
|
||||
<li class="thank-list__item">
|
||||
<h2 class="checkout__heading thank-list__heading">Способ оплаты</h2>
|
||||
<p><?= $b->get_view($purchase->purchase->get_prop("payment_method")); ?></p>
|
||||
</li>
|
||||
<li class="thank-list__item">
|
||||
<h2 class="checkout__heading thank-list__heading">Статус оплаты</h2>
|
||||
<p><?= $b->get_view($purchase->purchase->get_prop("status")); ?></p>
|
||||
</li>
|
||||
</ul>
|
||||
27
playarea/templates/thanks_order/price.php
Normal file
27
playarea/templates/thanks_order/price.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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>
|
||||
30
playarea/templates/thanks_order/product_row.php
Normal file
30
playarea/templates/thanks_order/product_row.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
$product = $variables["product"];
|
||||
$cart_count = $variables["count"];
|
||||
$in_storage = $product->get_prop("product_in_stock");
|
||||
|
||||
?>
|
||||
<div class="cart-list__item cart-item row align-items-center justify-content-between">
|
||||
<div class="first row align-items-center">
|
||||
<figure class="product__image">
|
||||
<img src="<?= $product->get_prop_render_value("product_photo") ?>" alt="" />
|
||||
</figure>
|
||||
<div class="cart-item__params">
|
||||
<a class="product__title" href="/product/<?= $product->get_item_slug(); ?>/"><?= $product->get_item_name(); ?></a>
|
||||
<?php if($in_storage) { ?>
|
||||
<p class="product__qty">На складе <?= $in_storage; ?> шт</p>
|
||||
<?php } else { ?>
|
||||
<p class="product__qty">Нет на складе</p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="second quantity shadow-none">
|
||||
<div class="quantity__input">
|
||||
<input readonly="" autocomplete="off" type="number" title="Qty" min="1" max="1000" step="1" value="<?= $cart_count; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<span class="third product-wrapper__prices col-auto">
|
||||
<?php $this->template_load("productCart/price.php", array("price" => $product->get_prop("price"), "sale_percent" => $product->get_prop("sale_percent"), "count" => $cart_count)); ?>
|
||||
</span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user