Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. protected function _prepareCollection()
  2. {
  3. $collection = Mage::getResourceModel($this->_getCollectionClass());
  4. $this->setCollection($collection);
  5. $collection->getSelect()->join('sales_flat_order', 'main_table.entity_id = sales_flat_order.entity_id', array('base_shipping_amount', 'base_subtotal', 'base_tax_amount'));
  6. return parent::_prepareCollection();
  7. }
  8.  
  9. $collection->getSelect()->join('sales_flat_order_address', 'main_table.entity_id = sales_flat_order_address.entity_id', array('country_id'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement