0

I have followed inchoo post to create the custom report for Magento 1.9 it works perfectly.

I want to add Users mobile number to the filter list.

Anybody can help?

0

in _prepareCollection method :-

    $collection = Mage::getResourceModel('sales/order_collection')
        ->join(array('a' => 'sales/order_address'), 'main_table.entity_id = a.parent_id AND a.address_type != \'billing\'', array(
            'city'       => 'city',
            'country_id' => 'country_id',
              'telephone' => 'telephone'
        ))

in _prepareColumns function add below after city or where you want

    $this->addColumn('telephone', array(
        'header' => $helper->__('Telephone'),
        'index'  => 'telephone'
    ));
  • @jaisal is that work for you – Sunil Patel Jul 17 '17 at 11:14
  • Can you help to add purchased Product Quantity to it ? – Jaisal Aug 1 '17 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.