SHARE
TWEET

Untitled

a guest Jul 17th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected function _renderFiltersBefore() {
  2.   $joinTable = $this->getTable('sales_order');
  3.   $this->getSelect()->joinLeft($joinTable,
  4.        'main_table.entity_id = sales_order.entity_id', ['coupon_code']);
  5.   $joinTableItem = $this->getTable('sales_order_item');
  6.   $this->getSelect()->join($joinTableItem,
  7.        'main_table.entity_id = sales_order_item.order_id',
  8.        ['sku','price','qty_ordered']);
  9.   parent::_renderFiltersBefore();
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top