2
고객의 우편 번호/우편 번호를 표시하는 주문 그리드를 얻으려고합니다.Magento - Magento 1.6.2에서 주문 그리드에 우편 번호/우편 번호 추가
sales_flat_order_address 별칭을 컬렉션과 결합하려고했지만 성공하지 못했습니다.
protected function _prepareCollection() {
$collection = Mage::getResourceModel($this->_getCollectionClass());
$collection->getSelect()->join('sales_flat_order_address', 'main_table.entity_id = sales_flat_order_address.parent_id',array('postcode'));
//var_dump($collection);
$this->setCollection($collection);
return parent::_prepareCollection();
}
아무에게도 해결책을 찾아 주실 수 있습니까?
고맙게도이 기능은 완벽하게 작동했습니다. – user1997432