Dont display price on category list if recur_price_display is NULL

This commit is contained in:
Deon George 2013-01-11 14:43:51 +11:00
parent a7a60a96d8
commit 217462f77e

View File

@ -1,6 +1,6 @@
<table class="product-list-item">
<tr class="head">
<td class="heading"><a href="<?php echo URL::site(sprintf('product/view/%s?cid=%s',$o->id,$co->id));?>"><?php echo $o->name(); ?></a> (<?php echo Currency::display($o->price(0,$co->recur_price_display,'price_base',TRUE)); ?>)</td>
<td class="heading"><a href="<?php echo URL::site(sprintf('product/view/%s?cid=%s',$o->id,$co->id));?>"><?php echo $o->name(); ?></a><?php echo $co->recur_price_display ? ' ('.Currency::display($o->price(0,$co->recur_price_display,'price_base',TRUE)).')' : ''; ?></td>
</tr>
<tr class="body">
<td><?php echo $o->description_short(); ?></td>