Quote Line Item Search Filter Disabled Products from Results

Hi,

I have a  question about possibility of  removing items for the quote line item selector

When selectin the  [+]  to add a  new row, I start typing, this returns all products matching this search query.

Is it possible to exclude items from  this list based on say a field called status?

So only Catalog items returned are items that are "Enabled"

Parents
  • Hi yes it is pretty possible. Actually such a feature make CRM to filter accordingly on both quick search and popup as well.

    In the file custom/modules/Products/clients/base/views/quote-data-group-list/quote-data-group-list.php you need to modify product_template_name definition this way:

            array (
              'name' => 'product_template_name',
              'label' => 'LBL_ITEM_NAME',
              'widthClass' => 'cell-xlarge',
              'type' => 'quote-data-relate',
              'required' => true,
        		  'initial_filter_label' => 'LBL_FILTER_POPUP',
        		  'filter_populate' => array(
        			 'status' => array('Available'),
    		      ),
    		    ),
    

    Create an extended Language on module ProductTemplates in order to setup the label LBL_FILTER_POPUP.

    Remember to run QRR after saving the files.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Reply
  • Hi yes it is pretty possible. Actually such a feature make CRM to filter accordingly on both quick search and popup as well.

    In the file custom/modules/Products/clients/base/views/quote-data-group-list/quote-data-group-list.php you need to modify product_template_name definition this way:

            array (
              'name' => 'product_template_name',
              'label' => 'LBL_ITEM_NAME',
              'widthClass' => 'cell-xlarge',
              'type' => 'quote-data-relate',
              'required' => true,
        		  'initial_filter_label' => 'LBL_FILTER_POPUP',
        		  'filter_populate' => array(
        			 'status' => array('Available'),
    		      ),
    		    ),
    

    Create an extended Language on module ProductTemplates in order to setup the label LBL_FILTER_POPUP.

    Remember to run QRR after saving the files.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Children
No Data