Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ...
  2.  
  3. protected function _prepareCollection()
  4. {
  5. $collection = Mage::getResourceModel($this->_getCollectionClass());
  6. $collection->getSelect()->join('sales_flat_order_address', 'main_table.entity_id = sales_flat_order_address.parent_id',array('postcode'));
  7. $this->setCollection($collection);
  8. return parent::_prepareCollection();
  9. }
  10.  
  11. ...
  12.  
  13. $this->addColumn('postcode', array(
  14. 'header' => Mage::helper('sales')->__('Postcode'),
  15. 'index' => 'postcode',
  16. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement