为什么 Magento 在类别列表视图中对产品进行随机排序?我该如何解决这个问题?
我为我们的一位客户管理一家 Magento 商店。这个问题的问题在于,即使我选择了一个属性进行排序,类别列表视图中的产品顺序也是在值内随机化的。
也许这会让它更清楚一些:
假设我已按“bla”属性对类别进行排序。
假设 30 个产品的“bla”属性值为“aa”,其他 30 个产品的值为“ab”。
然后,Magento 将首先显示“bla”属性上具有值“aa”的所有产品,然后显示“bla”属性上具有值“ab”的 30 个产品。
到目前为止,一切都很好。然而,在“aa”产品中,顺序不断随机变化。即使仍在浏览同一类别。由于有时有 100 多个产品在“bla”属性上具有相同的值,这可能会导致某些产品显示在类别列表视图的第一页上,但随后我们会在第三页甚至第四页上再次遇到它。当然,Magento 应该记住产品的显示顺序,以确保页面导航永远不会向我抛出重复的产品,对吗?
那么..发生了什么事?这是标准的 Magento 行为吗?
更重要的是:我能做什么?
搜索 Google、Stack Overflow 等对我没有任何帮助,所以这就是我问的原因。
For one of our clients, I manage a Magento store. The problem with this one is that, even though I have selected an attribute to sort on, the order of the products in the category list view is randomized within values.
Maybe this will make it a bit clearer:
Say I have sorted the category by the "bla" attribute.
Say 30 products have value "aa" on the "bla" attribute and 30 other products have value "ab".
Then Magento will first show all products that have value "aa" on the "bla" attribute and then the 30 products that have value "ab" on the "bla" attribute.
So far so good. However, within the "aa" products, the order keeps changing randomly. Even when still browsing the same category. Since there are sometimes 100+ products that have the same value on the "bla" attribute, this can lead to some product being displayed on the first page of the category list view, but then we encounter it again on the 3rd or even 4th page. Of course, Magento should remember the order in which the products are displayed to ensure that page navigation can never throw duplicate products at me, right?
So.. What's happening? Is this standard Magento behavior?
More importantly: what can I do about it?
Searching Google, Stack Overflow, etc. did not help me at all, so that's why I'm asking.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以为类别中的每个产品设置位置,当您打开类别页面时 - 产品将按其排序:
这是您正在寻找的吗?
You can set position for each product in category and when you open category page - products will be ordered by it:
Is it what you are looking for?