我在一个网站上工作,该网站有一种产品可以与商店中的其他产品交叉销售。产品的性质意味着它将受益于展示简短的描述。
我尝试过<?php echo $this->getShortDescription(); ?>
,但没有结果。
关于的一些研究让我想到:返回的<?php echo $this->htmlEscape($this->getProductInfo()->getShortDescription()); ?>
:
致命错误:在第43行的/Applications/MAMP/htdocs/coursebuy/app/design/frontend/default/tefl/template/checkout/cart/crossell.html中,对非对象调用成员函数getShortDescription()
有人能帮上忙吗?
感谢
我已经解决了!
<?php echo $this->htmlEscape($_item->getShortDescription()); ?>