-- url of the page with the problem -- :
vlaspo-dev.dyndns-server.com/air-learnin...gory/17-engelen.html
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.5.10
I want to place the a description on the product listing table.
I have add the
<?php echo $this->row->product_description; ?>
but now i see the full description and want to show only before the read-more line
I have tried this
<?php echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description)); ?>
but with no luck..
can someone help me?
this is part of the listing-table.php
<td class="hikashop_product_name_row">
<span class="hikashop_product_name">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>">
<?php }
echo $this->row->product_name;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</span>
<?php if(!empty($this->row->extraData->afterProductName)) { echo implode("\r\n",$this->row->extraData->afterProductName); } ?>
<?php echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description)); ?>
</td>