无法在类别列表视图中检索简短描述 [英] Cant retrieve short description in category list view

查看:50
本文介绍了无法在类别列表视图中检索简短描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在类别列表视图中显示每个产品描述,如下所示:

I am trying to display each products description in the category list view like this:

 <?php echo $_product->getDescription(); ?>

但是,它什么也不显示.由于这在产品页面上可以正常工作,所以我不确定问题出在哪里.我该怎么做?

However, it just displays nothing. Since this works perfectly on the product page I am not quite sure where the problem is. How do I do this?

推荐答案

尝试一下

转到后端

目录->属性->管理属性

Catalog->Attributes->Manage Attributes

搜索简短说明"->将产品列表中使用的商品"设置为是"

Search for "short description" -> set "Used in Product Listing" to "Yes"

刷新缓存并重新索引

我是针对自定义属性执行此操作的,因此我看不出为什么该属性不适用于描述/简短描述

I did this for a custom attribute and I see no reason why this should not work for description/short description

这篇关于无法在类别列表视图中检索简短描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆