我需要对产品列表进行productCollection排序Category。
我需要这个设施,因为在我的站点中,我必须在单独的页面(选项卡)中显示新产品和特殊产品。
我什至可以使用addAttributetoSort()for sku, news_to_date, news_from_date,name等price。但不能使用category_id. 它没有效果。
我知道我可以从Manage Attribute的管理面板中设置它。在Manage Attribute price中,name可以进行排序。即使我可以从Manage Attributesku中创建, etc 作为属性。但是当我将属性代码创建为or时,它会出现类似的错误news_to_datecategorycategory_id
System reserved category/category_id
意味着我不能使用category或category_id作为管理属性中的属性(因为它们是由系统保留的)。
谁能建议如何做到这一点?