levi Posted September 2, 2010 Share Posted September 2, 2010 大家好,产品属性无法自定义排序,看到前辈的加入数字01.sample1 02.sample2 这样来固定排序内容,可是应该如何隐藏数字01.呢?在排序下拉框里面如何让默认的属性显示,(不用下拉现在是显示最后的内容)非常感谢! Link to comment Share on other sites More sharing options...
21846657 Posted September 3, 2010 Share Posted September 3, 2010 通过类似category的“前缀”方式来排序,需要修改的文件很多——不像下面的定制,只需要修改两处文件(升级时注意保留)。当然,也有个付费的第三方模块:http://www.prestashop.com/forums/viewthread/39687/免费的是,通过修改两处代码,实现“按照(3.Combinations页面)attribute加入产品的顺序”来排序:1. 备份后修改/classes/Product.php的function: getAttributesGroups(),替换: ORDER BY al.`name`); 为: ORDER BY pa.`id_product_attribute`); 2. 备份后修改/product.php,注销第285和286行: // foreach($groups AS &$group) // natcasesort($group['attributes']); Good luck! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now