Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. protected function _prepareCollection()
  2. {
  3. $collection = Mage::getResourceModel('sales/order_grid_collection');
  4. $this->setCollection($collection);
  5. $sales_flat_order_table = Mage::getSingleton('core/resource')->getTableName('sales_flat_order');
  6. $collection->getSelect()->join($sales_flat_order_table , 'main_table.increment_id = '.$sales_flat_order_table.'.increment_id', 'web4pro_abandonedcart_flag');
  7. $collection->addFieldToFilter($sales_flat_order_table.'.web4pro_abandonedcart_flag',array('eq' => 1));
  8. return parent::_prepareCollection();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement