Magento: Item (Mage_Sales_Model_Order) with the same id “1” already exist
2016-05-30 14:14
417 查看
protected function _prepareCollection(){}
里在 $this->setCollection($collection); 前面加上 $collection->getSelect()->group('main_table.entity_id');
里在 $this->setCollection($collection); 前面加上 $collection->getSelect()->group('main_table.entity_id');
相关文章推荐
- 虚拟机安装Centos版本的linux
- 手工注入方法,方便大家测试注入点
- 适配器模式
- 原码, 反码, 补码 详解
- 对象关系映射文件
- 快速排序-java实现
- python中根据字符串调用函数
- zookeeper测试环境部署
- 硬盘安装系统1
- Android SDK manger / AVD manager使用
- SQL Server数据库存储过程的异常处理
- web.xml中load-on-startup的作用
- 代码生成(2)...
- Bootstrap文件上传插件File Input的使用
- 硬盘装系统2
- HTTP 消息头
- html5 自定义文件上传
- Linux top命令介绍
- Oracle 定时任务详解
- Linux下安装nginx时出现“cp: "conf/koi-win" 与"/usr/local/nginx/conf/koi-win" 为同一文件”的解决方法: