Initial commit
This commit is contained in:
14
playarea/templates/productCart/price.php
Normal file
14
playarea/templates/productCart/price.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php $count = $variables["count"]; ?>
|
||||
<?php $count_price = ($variables["price"] * $count ); ?>
|
||||
<?php $product_price = number_format($count_price, 2, ',', ' '); ?>
|
||||
<?php if($variables["sale_percent"] > 0) { ?>
|
||||
<?php $product_sale_price = number_format($count_price * (1 - ($variables["sale_percent"] / 100)), 2, ',', ' '); ?>
|
||||
<p class="product-wrapper__oldprice"><del><?= $product_price; ?> ₽</del></p>
|
||||
<p class="product-wrapper__newprice"><?= $product_sale_price; ?> ₽</p>
|
||||
<?php } else { ?>
|
||||
<?php if($variables["price"] > 0) { ?>
|
||||
<p class="product-wrapper__newprice"><?= $product_price; ?> ₽</p>
|
||||
<?php } else { ?>
|
||||
<p class="product-wrapper__newprice">по запросу</p>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user