这个问题对你来说可能很愚蠢,但我很难找到解决方案。我想按价格从最低到最高对类别页面中的产品进行排序,我知道我可以按价格查看产品,但我想默认设置它,以便页面加载排序。你能告诉我应该修改哪个文件吗?我怎样才能做到这一点?
这是网址,因此您可以检查我在说什么:
http://pinstripecreative.com/nationalcapp2/5-decaffeinated
这个问题对你来说可能很愚蠢,但我很难找到解决方案。我想按价格从最低到最高对类别页面中的产品进行排序,我知道我可以按价格查看产品,但我想默认设置它,以便页面加载排序。你能告诉我应该修改哪个文件吗?我怎样才能做到这一点?
这是网址,因此您可以检查我在说什么:
http://pinstripecreative.com/nationalcapp2/5-decaffeinated
For people who are meeting such issue in Prestashop 1.6, the default sort type can be set in backend via preferences> Products > Set default sorting.
Note that some default modules, like blocksearch, can force the sorting of page by sending the orderby
and orderway
via a hidden input. Then you need in this case to change the view by either deleting the inputs or sending your own orderby
and orderway
.
Products default sort not working on search.tpl - Prestashop 1.6.0.6 - Resolved