Magento 中可配置产品的高级搜索
我有一个服装电子商务网站。我创建了颜色和尺寸属性并将它们与可配置产品一起使用。可配置产品具有至少两个关联产品,并且这些关联产品具有颜色和尺寸选项。
当我使用高级搜索来搜索具有指定尺寸属性的项目时,结果页面上没有显示任何内容。我猜这是因为关联产品的可见性设置为“无处”。
如何解决这个问题?
I have a clothing e-commerce website. I created color and size attributes and used them with configurable products. The configurable products have at least two associated products and those associated products have color and size options.
When I use advanced search to search items with a specified size attribute, nothing shows up on the result page. I guess it is because associated products' visibility is set to "Nowhere".
How do fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在某些情况下,上述答案可能就足够了。然而,我遇到了与此线程中指出的“Moon”相同的问题,即使所有可见性设置对于可配置产品(可见性“目录和搜索”)和属性(在高级搜索“是”中显示)都是正确的。
例如,由尺寸范围为 36 至 42 的文章组成的可配置产品在搜索结果中仅显示尺寸 36。即使“有效”、“可见”、“有库存”等,尺寸 38 - 42 也没有给出任何搜索结果。
我使用“快速创建选项”在可配置产品中设置了关联产品,
我设法解决了该问题如下:
将一个关联产品(可配置产品中的一个简单产品)的可见性从“单独不可见”设置为“搜索”,保存该项目,然后从可见性“搜索”更改回“单独不可见”解决了所有问题可配置产品中的产品变体(即所有简单产品)。
因此,更改相关产品尺寸 38 的上述内容,突然显示所有尺寸的搜索结果,
似乎表格中应该显示高级搜索结果的“标志”在第一个实例中没有正确设置,而是在“重新编辑'如上所述。当时间允许时,我将进一步深入探讨这一点;-)。还不知道这是 Magento 的错误还是与数据库或服务器设置有关。
希望这能帮助面临同样情况的人。
后注(编辑):重新索引所有索引而不仅仅是 Magento 建议重新索引的索引在这种情况下也可能有所帮助。
Above answer might suffice in some cases. I however experienced same problem as 'Moon' indicated in this thread, even though all visibility settings where correct for the configurable product (visibility 'catalog and search') and the attributes (show in advanced search 'yes').
E.g. a configurable product consisting of articles in size range 36 to 42 did only show size 36 in search results. Sizes 38 - 42 did not give any search result even though 'active', 'visible', 'in stock' etc..
I set up the associated products within the configurable products using the 'quick create option'
I managed to solve the issue as follows:
Setting the visibility of ONE associated product - one simple product within a configurable product - from 'not visible individually' to 'search' , saving the item and then changing back from visibility 'search' to 'not visible individually' solved the problem for ALL productvariations (thus all simple products) within the configurable products.
So changing the above for associated product size 38, suddenly revealed search results for all sizes,
It seems to be that the 'flag' in the table which should show the result in advanced search is not set correctly in first instance but only after a 're-edit'as explained above. I will dig into this further - when time allows ;-) . Don't know yet whether this is a Magento bug or is related to database or server settings.
Hope this will help someone who faces same situation.
Post-remark (edit):re-indexing ALL indexes not just the one that Magento advises to re-index might help too in this case.
可配置产品应使用其关联产品的属性进行索引,无论这些产品的可见性如何。
我建议检查可配置产品是否未设置可见性以将其包含在搜索结果中。此外,刷新搜索索引可能会解决该问题。
Configurable products should be indexed with the attributes of their associated products, regardless of the visibility of those products.
I'd suggest checking that the configurable products don't have visibility set to include them in search results. Also, refreshing the search index may fix the problem.