How to add more information/custom fields to Global Search Results ?

Hello Team,

Please see below screen shot, I want to add more std/custom fields to global search results.

GlobalSearch.png

Version : 7.7 Ent

Thanks,

Shyam

Parents Reply Children
  • Hi KGM

    Thanks for the reply, actually I want display more custom fields on Global result page, if you see the screen shot, I want to add phone fields next to the Shipping fields.

    Kristjan Geir Mathiesen

    Thanks,

    Shyam

  • Kristjan Geir Mathiesen

    Please see below screen shot, now you will get more clarity and sorry for my previous screen shot, it's confusing.

    GlobalSearch.png

    Thanks,

    Shyam

  • Hello Shyam Gaikwad,

    I have done this customization for my one of the existing client.

    I have share my code with you.I have done this for opportunities module. I have remove date_closed into global search.

    Put this file into /<>/custom/modules/Opportunities/clients/base/views/search-list/search-list.php

    $viewdefs['Opportunities']['base']['view']['search-list'] = array(
        'panels' => array(
            array(
                'name' => 'primary',
                'fields' => array(
                    array(
                        'name' => 'picture',
                        'type' => 'avatar',
                        'size' => 'medium',
                        'readonly' => true,
                        'css_class' => 'pull-left',
                    ),
                    array(
                        'name' => 'name',
                        'type' => 'name',
                        'link' => true,
                        'label' => 'LBL_SUBJECT',
                    ),
                ),
            ),
            /*array(
                'name' => 'secondary',
                'fields' => array(
                    array(
                        'name' => 'date_closed',
                        'type' => 'date',
                        'label' => 'LBL_DATE_CLOSED'
                    )
                ),
            ),*/
        ),
    );
    

    You need to add your field in to array.

    Do Repair & Rebuilds.

    Hope it will help you. If you need more help let me know.

    -BPATEL