MAGENTO - 在根类别中显示子类别产品
我无法在任何地方找到此问题的答案,但我无法看到在根类别页面上显示其子类别成员的任何产品。当我单击顶部导航中的类别时,我会在左侧和右侧看到子类别(主要内容)“没有与选择匹配的产品”。每个子猫。不过展示了它的产品。
在管理->目录->管理类别 每个类别显示产品数量,即 (4),但其根类别显示 (0)。
有什么想法吗?
提前致谢
解决方案
转到管理员 ->目录->管理类别-> “选择类别”->显示设置->是锚=“是”
然后:
管理员->系统->指数管理-> “全选”-> “重新索引数据”-> “提交”
谢谢大家的意见
i havent been able to find the answer for this anywhere but i cant seen to display any of the products on the root categories page from its sub category members. When i click the category from the top navigation i get the sub categories on the left and on the right (main content) “There are no products matching the selection”. Each sub-cat. shows its products though.
In Admin -> Catalog -> Manage Categories each category shows the number of products i.e (4) however its root category displays (0).
Any ideas?
thanks in advance
Solution
Go to Admin -> Catalog -> Manage Categories -> "Select Category" -> Display Settings -> Is Anchor = "Yes"
Then:
Admin -> System -> Index Management -> "Select All" -> "Reindex data" -> "Submit"
Thanks for everyones comments
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
确保将根类别的“是锚点”设置为“是”。
Make sure you set "Is anchor" to "Yes" for your root category.
将anchor设置为YES,然后在索引管理中重新索引类别。
Set anchor as YES and then reindex categories in index management.
每个类别都有相关的产品。
只需将这些产品也关联到更高级别的类别即可。
它们将显示在该类别的前端。
Every category has associated products.
Just associate these products into the higher-level category too.
They will show up on frontend in that category.
首先识别is_anchor属性的属性id:
我们在我的数据库中获取属性id 51。现在运行以下查询,
将 51 替换为您自己的属性 ID。然后重建这些索引
First identify the attribute id of the is_anchor attribute:
we Get attribute id 51 in my database. Now run the following query
replace 51 with your own attribute id. And just rebuild these indexes