产品显示在子类别中但不在类别中

发布于 2024-10-06 22:53:09 字数 491 浏览 0 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小姐丶请自重 2024-10-13 22:53:09

听起来你一切都正确。有时这些类别可能会变得不稳定 - 我不太清楚为什么。如果您转到类别页面 - 将子类别从父类别中拖出然后再拖回可能会有所帮助。

我通常遵循乔给您的完全相同的步骤。每当我遇到这个问题时,通常可以通过以下方法之一来解决。我会仔细检查这些东西(尤其是索引)以防万一。

  1. 索引需要刷新。 (根据您的网站索引可能需要一段时间 - 有时产品将不会显示,因为目录被重新索引)。
  2. 缓存需要刷新。
  3. 我的类别结构不是我想象的那样。

我希望这有帮助。您可以提供的任何额外信息肯定也会有所帮助。

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.

  1. Index's need to be refreshed. (Depending on your site indexing can take a while - and sometimes products will not be shown as the catalog is re-indexed).
  2. Cache needs to be refreshed.
  3. My category structure is not what I thought it was.

I hope that helps. Any extra information you can provide would certainly be helpful as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文