0
我目前正在扩展Magento发票网格以显示一些额外的列。 我已经获得了大部分需要的数据,但我正在努力从同一个数据库表中获取多于1个列。
这是我在我的_prepareCollection
$collection->join('invoice','main_table.entity_id=invoice.entity_id','subtotal');
$collection->join('invoice','main_table.entity_id=invoice.entity_id','discount_description');
我想我需要删除第二行,并把它们放到somekind的数组,我只是如何做不知道,因为我不对PHP不太适用。
谢谢。
这很简单,它是关于单表多时间加入。如何加入多个表格? – 2016-08-19 05:53:14