#5013

Tu Tran
Moderator

Hi,

The cause is that the product title is too long. To solve this problem please go to the file app\design\frontend\default\sns_nova\template\catalog\product\list\related.phtml, find and replace the code

<div class="item-title"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></div>

By:

<div class="item-title"><a title="<?php echo $this->htmlEscape($_item->getName()) ?>" href="<?php echo $_item->getProductUrl() ?>"><?php
    if(strlen($this->htmlEscape($_item->getName())) > 22){
        echo substr($this->htmlEscape($_item->getName()), 0, 22) .' ...';
    }else{
        echo $this->htmlEscape($_item->getName());
    }
    ?></a>
</div>

Thanks you,