I have a table which show the associated products. Some of these products have special tier price (buy 10 and get 10% off). I want to display a sale image if a tier price is shown however i am not very experienced with php so i am struggling a bit.
I tried
<td class="a-left">
<?php if ($this->getCanShowProductPrice($_item)): ?>
<?php echo $this->getPriceHtml($_item, true) ?>
<br>
<?php echo $this->getTierPriceHtml($_item)?>
<img src="/skin/frontend/base/default/images/low_price.png" alt="low price icon">
<?php endif; ?>
</td>
But that just show the icon on every product even without a tier price. So i figured i would need an IF statement to check if the product has a tier price and if true then display the image. So i tried this.
<td class="a-left">
<?php if ($this->getCanShowProductPrice($_item)): ?>
<?php echo $this->getPriceHtml($_item, true) ?>
<br>
<?php echo $this->getTierPriceHtml($_item)?>
<?php if ($this->getTierPriceHTML = True): ?>
<img src="/skin/frontend/base/default/images/low_price.png" alt="low price icon"> <?php endif; ?>
<?php endif; ?>
</td>
But that just had exactly the same outcome (image displayed on all products). I am not sure what else to try so if you could help it would be brilliant.
Thanks!!!