我可以毫无后顾之忧地将简短描述添加到后端,但是当我看到前端时,它会丢失第一个字母。
此示例:http://www.bluescribecloud.com/index.php/nautical/bells/bronze-ship-s-bell-4.html
正如您在单击页面时看到的那样,图像右侧是“简短描述”文本,缺少第一个字母。每种产品都是一样的。
您可以在产品名称底部的说明部分中看到正确的说明。
在旁注中,是否可以使用简短描述以3个尾随椭圆结束而不是突然结束?
感谢!!!
答案 0 :(得分:0)
当你在模板文件中回复说明时,肯定会出现一些问题。找到使用的模板,并解决问题,或者您可以在此处提及代码。
答案 1 :(得分:0)
Bingo,将代码更改为此;
<?php if ($_product->getShortDescription()):?>
<div class="short-description"> <!--<h2><?php echo $this->__('Quick Overview') ?></h2>-->
<?php $des = $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description');?>
<div class="std">
<?php if(strlen($des) > 200) {
echo substr($des,0,200).'...';
} else {
echo $des; } ?>
</div></div>
<?php endif;?>