我想在下面的查詢 我不知道什麼是屬性查詢請幫我找出這個SQL Magento的銷售報表查詢
$form = Start Date
$to = End Date
$this->_reset();
$this->getSelect()
->joinInner(array(
'i' => $this->getTable('sales/order_item')),
'i.order_id = main_table.entity_id'
)
->where('i.parent_item_id is null')
->where("i.created_at BETWEEN '".$from."' AND '".$to."'")
->where('main_table.state = \'complete\'')
->columns(array('ordered_qty' => 'count(distinct `main_table`.`entity_id`)'));
添加喜歡的顏色,大小等多屬性的屬性
感謝 Jitendra
Jitendra,可以請把孔模塊... –
這裏網站http://www.summasolutions.net/blogposts/custom-reports-magento –
任何一個幫助這個 –