Jump to content

How to add extra email field to the admin order list?


Recommended Posts

open file:

/controllers/admin/AdinOrdersController.php

 

there is a code with fields list:

	$this->fields_list = array(
		'id_order' => array(
			'title' => $this->l('ID'),
			'align' => 'center',
			'width' => 25
		),
		'reference' => array(
			'title' => $this->l('Reference'),
			'align' => 'center',
			'width' => 65
		),
		'new' => array(
			'title' => $this->l('New'),
			'width' => 25,
			'align' => 'center',
			'type' => 'bool',
			'tmpTableFilter' => true,
			'icon' => array(
				0 => 'blank.gif',
				1 => array(
					'src' => 'note.png',
					'alt' => $this->l('First customer order'),
				)
			),
			'orderby' => false
		),
		'customer' => array(
			'title' => $this->l('Customer'),
			'havingFilter' => true,
		),

add there new field:

        'email' => 
        array(
        'title'=>$this->l('email'),
        'havingFilter' => true,
        ),

effect:
DXuW6ZN.png

Link to comment
Share on other sites

open file:

/controllers/admin/AdinOrdersController.php

 

there is a code with fields list:

	$this->fields_list = array(
		'id_order' => array(
			'title' => $this->l('ID'),
			'align' => 'center',
			'width' => 25
		),
		'reference' => array(
			'title' => $this->l('Reference'),
			'align' => 'center',
			'width' => 65
		),
		'new' => array(
			'title' => $this->l('New'),
			'width' => 25,
			'align' => 'center',
			'type' => 'bool',
			'tmpTableFilter' => true,
			'icon' => array(
				0 => 'blank.gif',
				1 => array(
					'src' => 'note.png',
					'alt' => $this->l('First customer order'),
				)
			),
			'orderby' => false
		),
		'customer' => array(
			'title' => $this->l('Customer'),
			'havingFilter' => true,
		),

add there new field:

        'email' => 
        array(
        'title'=>$this->l('email'),
        'havingFilter' => true,
        ),

effect:

DXuW6ZN.png

 

Thanks so much. It works fine.

 

 

And how to get delivery address country code like USA?

Link to comment
Share on other sites

×
×
  • Create New...