Jump to content
  • 0
b.tsvetkov

[SOLVED] How to search customers by phone mobile

Question

11 answers to this question

Recommended Posts

  • 0

Here's a simple override that adds "Phone" and "Mobile" columns to the Customers > Addresses tab in the Back Office so you can filter by phone or mobile. Create override/controllers/admin/AdminAddressesController.php with the following:

<?phpclass AdminAddressesController extends AdminAddressesControllerCore{    public function __construct()    {        parent::__construct();                $this->fields_list['phone'] = array('title' => $this->l('Phone'), 'filter_key' => 'a!phone');           $this->fields_list['phone_mobile'] = array('title' => $this->l('Mobile'), 'filter_key' => 'a!phone_mobile');       [spam-filter]

Remember to go to the Advanced Parameters > Performance tab and click the "Clear cache" button after creating the file.

Share this post


Link to post
Share on other sites
  • 0

Here's a simple override that adds "Phone" and "Mobile" columns to the Customers > Addresses tab in the Back Office so you can filter by phone or mobile. Create override/controllers/admin/AdminAddressesController.php with the following:

<?phpclass AdminAddressesController extends AdminAddressesControllerCore{    public function __construct()    {        parent::__construct();                $this->fields_list['phone'] = array('title' => $this->l('Phone'), 'filter_key' => 'a!phone');           $this->fields_list['phone_mobile'] = array('title' => $this->l('Mobile'), 'filter_key' => 'a!phone_mobile');       [spam-filter]

Remember to go to the Advanced Parameters > Performance tab and click the "Clear cache" button after creating the file.

Great, it's working!

Thank you so much!

Share this post


Link to post
Share on other sites
  • 0

Delete the /cache/class_index.php file.

 

As it is stated in /override/readme_override.txt:

 

Hello,

 
Please read the documentation before trying to override something here.
 
Frequently Asked Questions
 
Q: I added an override file but it seems to be ignored by PrestaShop
A: You need to trigger the regeneration of the /cache/class_index.php file. This is done simply by deleting the file. It is the same when manually removing an override: in order to reinstate the default behavior, you must delete the /cache/class_index.php file.
 

 

Worked, fine for me in 1.6.1.12

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×