Initial commit

This commit is contained in:
Ivan Petrov
2025-12-24 19:19:01 +03:00
commit a7097c6178
19493 changed files with 94306 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?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">На складе --><?php //= $in_storage; ?><!-- шт</p>-->
<p class="product__qty">В наличии</p>
<?php } else { ?>
<p class="product__qty">В наличии</p>
<!-- <p class="product__qty">Нет на складе</p>-->
<?php } ?>
</div>
</div>
<div class="second quantity">
<button type="button" class="quantity__button quantity__button_minus calc__btn minus" product_id="<?= $product->item_id; ?>"></button>
<div class="quantity__input">
<input readonly="" autocomplete="off" type="number" title="Qty" min="1" max="1000" step="1" value="<?= $cart_count; ?>"/>
</div>
<button type="button" class="quantity__button quantity__button_plus calc__btn plus" product_id="<?= $product->item_id; ?>"></button>
</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>
<button class="close product-cart-remove" product_id="<?= $product->item_id; ?>">
<svg class="search-button__find">
<use xlink:href="<?= $b->pa_get_assets_dir() ?>main/images/icons/sprite.svg#close"></use>
</svg>
</button>
</div>