Dont display price on category list if recur_price_display is NULL
This commit is contained in:
parent
a7a60a96d8
commit
217462f77e
@ -1,6 +1,6 @@
|
|||||||
<table class="product-list-item">
|
<table class="product-list-item">
|
||||||
<tr class="head">
|
<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>
|
||||||
<tr class="body">
|
<tr class="body">
|
||||||
<td><?php echo $o->description_short(); ?></td>
|
<td><?php echo $o->description_short(); ?></td>
|
||||||
|
Reference in New Issue
Block a user