Initial commit
This commit is contained in:
27
playarea/templates/product/price.php
Normal file
27
playarea/templates/product/price.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php $product_price = number_format($variables["price"], 2, ',', ' '); ?>
|
||||
|
||||
<?php if($variables["sale_percent"] > 0) { ?>
|
||||
<?php $product_sale_price = number_format($variables["price"] * (1 - ($variables["sale_percent"] / 100)), 2, ',', ' '); ?>
|
||||
|
||||
<div class="product-wrapper__pricing row align-items-center">
|
||||
<span class="product-wrapper__prices col-auto">
|
||||
<p class="product-wrapper__oldprice"><del><?= $product_price; ?> ₽</del></p>
|
||||
<p class="product-wrapper__newprice"><?= $product_sale_price; ?> ₽</p>
|
||||
</span>
|
||||
<div class="product-wrapper__action product-prices__action col-auto">
|
||||
-<?= $variables["sale_percent"]; ?>
|
||||
</div>
|
||||
<button class="product-wrapper__question" aria-label="Задать вопрос" data-popup-open="zayavka"></button>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="product-wrapper__pricing row align-items-center">
|
||||
<span class="product-wrapper__prices col-auto">
|
||||
<?php if($variables["price"] > 0) { ?>
|
||||
<p class="product-wrapper__newprice"><?= $product_price; ?> ₽</p>
|
||||
<?php } else { ?>
|
||||
<p class="product-wrapper__newprice">по запросу</p>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<button class="product-wrapper__question" aria-label="Задать вопрос" data-popup-open="zayavka"></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user