2012-02-20 156 views

回答

2

对于新系列,请使用addAttributeToSort()。对于具有上述排序顺序的现有集合,您可以使用unshiftOrder()

+0

benmark,请你详细说明。我在list.phtml中有$ _productCollection = $ this-> getLoadedProductCollection();'''''''''''''''''''''''''''''''''所以基本上我想在'<?php $ i = 0;之前排序productCollection; foreach($ _productCollection为$ _product):?>'。任何帮助,将不胜感激。 – EasyCo 2012-04-27 10:27:25

+0

@EasyCo - 请提出这个问题(a/o/t评论),我或其他人会回答:-) – benmarks 2012-04-27 11:45:23