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

30 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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>