产品显示在子类别中但不在类别中
我在 Magento 中的子类别(“1a”)中有一个产品,当我在前端浏览到该类别时显示正常,但当我浏览到其母类别(“1”)时不会显示,我希望它也在那里展示。
在后端,类别和子类别都启用了“锚定”。产品已启用并在目录、搜索中可见。
我已经根据下面帖子的建议检查了以下内容,但这对我来说一切都很好,特别是它显示在子类别中,但不显示在没有与选择匹配的产品的类别中。
以下是商品是否有库存的清单。有些看起来很愚蠢,直到您第一次花一个小时试图解决这个问题:
- 产品必须在目录中可见。
- 产品必须已启用。
- 产品必须有库存数量。
- 产品必须设置为有库存。
- 如果产品设置为不跟踪库存,则仍必须有库存数量并设置为有库存。
- 产品必须分配到目标类别。
- 如果使用多网站模式(或者如果您通过数据流导入产品),则必须将产品分配到目标网站。
- 您必须刷新您的缓存/索引,只是为了确保这一点。
I have a product in Magento in the subcategory ("1a") that shows fine when I browse to that category in the front end but won't show when I browse to its mother category ("1"), and I want it to be shown there too.
In the backend, both the category and subcategory have "anchor" enabled. The products are enabled and visible in catalog, search.
I have checked the following on the advice of the post below, but this is all ok for me, especially it is displaying in the subcategory but not in the category where it says there are no products matching selection.
The checklist for whether items are in stock follows. Some will seem stupid until the first time you spend an hour trying to figure this problem out:
- The products must be Visible in Catalog.
- The products must be Enabled.
- Product must have a stock Quantity.
- The product must be set to In Stock.
- If the product is set not to track stock, it still has to have a stock Quantity and be set to In Stock.
- The product must be assigned to the target Category.
- If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
- You must refresh your Cache / Indices, just to make sure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你一切都正确。有时这些类别可能会变得不稳定 - 我不太清楚为什么。如果您转到类别页面 - 将子类别从父类别中拖出然后再拖回可能会有所帮助。
我通常遵循乔给您的完全相同的步骤。每当我遇到这个问题时,通常可以通过以下方法之一来解决。我会仔细检查这些东西(尤其是索引)以防万一。
我希望这有帮助。您可以提供的任何额外信息肯定也会有所帮助。
It sounds like you've got everything correct. Sometimes the categories can get wonky - I'm not really sure why. If you go to your categories page - drag your subcategory out of the parent and then back in it might help.
I usually follow the exact same steps you were given by Joe. Whenever I run into this issue it is usually solved by one of the following. I would double check these things (especially the indexes) just in case.
I hope that helps. Any extra information you can provide would certainly be helpful as well.