Так попробуйте
<?php if ($price) { ?>
<div class="price">
<?php if (!$special) { ?>
<h2>
<?php $new_price = $price; $a = explode('.', $new_price); $a = $a[0]; echo $a; ?>
<?php if ($tax) { ?>
<span class="tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span>
<?php } ?>
<?php if ($points) { ?>
<span class="points"><?php echo $text_points; ?> <strong><?php echo $points; ?></strong></span>
<?php } ?>
</h2>
<?php } else { ?>
<h2>
<span class="price-old"> <?php $new_price = $price; $a = explode('.', $new_price); $a = $a[0]; echo $a; ?> </span>
<?php echo $special; ?>
<?php if ($tax) { ?>
<span class="tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span>
<?php } ?>
<?php if ($points) { ?>
<span class="points"><?php echo $text_points; ?> <strong><?php echo $points; ?></strong></span>
<?php } ?>
</h2>
<?php } ?>
<?php if ($discounts) { ?>
<div class="alert alert-info">
<?php foreach ($discounts as $discount) { ?>
<div><?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?></div>
<?php } ?>
</div>
<?php } ?>
</div>
<?php } ?>