magento截取字符串
list.phtml文件
<?php echo $this->htmlEscape($_product->getName()) ?>
<?php echo $this->htmlEscape(Mage::helper('core/string')->truncate($_product->getName(),10,'…')) ?>
list.phtml文件
<?php echo $this->htmlEscape($_product->getName()) ?>
<?php echo $this->htmlEscape(Mage::helper('core/string')->truncate($_product->getName(),10,'…')) ?>