This feature request is for stores that contain products which are retired after a period of time. It will provide an option to hide disabled products from the auto complete search for products by SKU/title.

Patch will be posted shortly.

Comments

arosboro’s picture

Status: Active » Closed (works as designed)

Upon further inspection, the following code should provide the necessary workaround in a custom module.

function my_module_query_commerce_product_match_alter(QueryAlterableInterface $query) {
  $query->addField('cp', 'status');
  $query->condition('cp.status', 1, '=');
}
haemalatha’s picture

@arosboro This works Great:)